summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-03-13 13:07:33 -0400
committerMike Blumenkrantz <zmike@samsung.com>2014-03-13 13:08:00 -0400
commit36fb654e9d5a715bd92accf5ddd8926264008efc (patch)
tree3af8165aa14db6839459fea735bc799bf4a0b3b5
parentbaa1e25d2aea2a5573fda31db853638ba4287257 (diff)
bugfix: don't deref teamwork pointer after null check
CID 1040134
-rw-r--r--src/modules/teamwork/e_mod_tw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/teamwork/e_mod_tw.c b/src/modules/teamwork/e_mod_tw.c
index f3743f4b2..9fabdb4f9 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)
599 int cleaned = 0; 599 int cleaned = 0;
600 if ((!cleaner_edd) || (!cache_edd) || (tw_config->allowed_media_age < 0) || (!mcl) || (!mcl->cache)) 600 if ((!cleaner_edd) || (!cache_edd) || (tw_config->allowed_media_age < 0) || (!mcl) || (!mcl->cache))
601 { 601 {
602 media_cleaner[mcl->video] = NULL; 602 if (mcl)
603 media_cleaner[mcl->video] = NULL;
603 return EINA_FALSE; 604 return EINA_FALSE;
604 } 605 }
605 606