bugfix: don't deref teamwork pointer after null check

CID 1040134
This commit is contained in:
Mike Blumenkrantz 2014-03-13 13:07:33 -04:00
parent a54fda4530
commit ce429495bb
1 changed files with 2 additions and 1 deletions

View File

@ -597,7 +597,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;
}