evas image load - handle null module handle in case

this fixes CID 1368338
This commit is contained in:
Carsten Haitzler 2017-02-08 11:45:09 +09:00
parent 355bba8276
commit c657d41fc3
1 changed files with 11 additions and 3 deletions

View File

@ -381,9 +381,17 @@ end:
em->definition->name : "<UNKNOWN>",
file);
ie->info.module = em;
ie->info.loader = em->functions;
if (em) evas_module_ref(em);
if (em)
{
ie->info.module = em;
ie->info.loader = em->functions;
evas_module_ref(em);
}
else
{
ie->info.module = NULL;
ie->info.loader = NULL;
}
return ret;
}