summaryrefslogtreecommitdiff
path: root/src/lib/evas/common
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-08 11:45:09 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-08 21:19:39 +0900
commitc657d41fc3342b95030bdf2acde070895cf091b2 (patch)
treea8a36fb447031b9b25b533d6b55fa97acb61ab1a /src/lib/evas/common
parent355bba8276c80055c12e4e048fe6ba57e2fa4db6 (diff)
evas image load - handle null module handle in case
this fixes CID 1368338
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r--src/lib/evas/common/evas_image_load.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index b27bae2c00..ca9a28c998 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -381,9 +381,17 @@ end:
381 em->definition->name : "<UNKNOWN>", 381 em->definition->name : "<UNKNOWN>",
382 file); 382 file);
383 383
384 ie->info.module = em; 384 if (em)
385 ie->info.loader = em->functions; 385 {
386 if (em) evas_module_ref(em); 386 ie->info.module = em;
387 ie->info.loader = em->functions;
388 evas_module_ref(em);
389 }
390 else
391 {
392 ie->info.module = NULL;
393 ie->info.loader = NULL;
394 }
387 return ret; 395 return ret;
388} 396}
389 397