diff options
Diffstat (limited to 'src/lib/evas/common')
-rw-r--r-- | src/lib/evas/common/evas_image_load.c | 4 |
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) | |||
450 | end: | 450 | end: |
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); |