summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-04 20:18:42 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-04 20:18:42 +0900
commit309e490bc03a5e875238f281cc3affd9d334d86f (patch)
treef2e7a987029bfe95a0cd0d49733f5267d85a7a05 /src/lib
parentb68280bd858844b8d2bf1c0a5252d59355ad2860 (diff)
efl header skip with preload - fix seg on invalid file
for invalid files we didn't handle this case, so fix it - recent commit/feature add.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/evas/common/evas_image_load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/common/evas_image_load.c b/src/lib/evas/common/evas_image_load.c
index 8e59bdd4b5..c1bfde7c9b 100644
--- a/src/lib/evas/common/evas_image_load.c
+++ b/src/lib/evas/common/evas_image_load.c
@@ -450,12 +450,12 @@ evas_common_load_rgba_image_data_from_file(Image_Entry *ie)
450end: 450end:
451 if (ie->info.module != em) 451 if (ie->info.module != em)
452 { 452 {
453 evas_module_ref(em); 453 if (em) evas_module_ref(em);
454 evas_module_unref(ie->info.module); 454 evas_module_unref(ie->info.module);
455 ie->info.module = em; 455 ie->info.module = em;
456 } 456 }
457 } 457 }
458 if (!ie->f) return EVAS_LOAD_ERROR_DOES_NOT_EXIST; 458 if ((!ie->f) || (!ie->info.module)) return EVAS_LOAD_ERROR_DOES_NOT_EXIST;
459 459
460 if ((ie->file) && (stat(ie->file, &st) == 0)) 460 if ((ie->file) && (stat(ie->file, &st) == 0))
461 _timestamp_build(&(ie->tstamp), &st); 461 _timestamp_build(&(ie->tstamp), &st);