discomfitor pushed a commit to branch enlightenment-0.18.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=36fb654e9d5a715bd92accf5ddd8926264008efc

commit 36fb654e9d5a715bd92accf5ddd8926264008efc
Author: Mike Blumenkrantz <[email protected]>
Date:   Thu Mar 13 13:07:33 2014 -0400

    bugfix: don't deref teamwork pointer after null check
    
    CID 1040134
---
 src/modules/teamwork/e_mod_tw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/teamwork/e_mod_tw.c b/src/modules/teamwork/e_mod_tw.c
index f3743f4..9fabdb4 100644
--- a/src/modules/teamwork/e_mod_tw.c
+++ b/src/modules/teamwork/e_mod_tw.c
@@ -599,7 +599,8 @@ media_cleaner_cb(void *data)
    int cleaned = 0;
    if ((!cleaner_edd) || (!cache_edd) || (tw_config->allowed_media_age < 0) || 
(!mcl) || (!mcl->cache))
      {
-        media_cleaner[mcl->video] = NULL;
+        if (mcl)
+          media_cleaner[mcl->video] = NULL;
         return EINA_FALSE;
      }
 

-- 


Reply via email to