summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_image_legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/canvas/evas_image_legacy.c')
-rw-r--r--src/lib/evas/canvas/evas_image_legacy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_image_legacy.c b/src/lib/evas/canvas/evas_image_legacy.c
index 3f69dca4e6..dd6e579537 100644
--- a/src/lib/evas/canvas/evas_image_legacy.c
+++ b/src/lib/evas/canvas/evas_image_legacy.c
@@ -694,7 +694,7 @@ evas_object_image_data_get(const Eo *eo_obj, Eina_Bool for_writing)
694 pixels = ENFN->image_data_get(ENDT, o->engine_data, for_writing, &data, &o->load_error, &tofree); 694 pixels = ENFN->image_data_get(ENDT, o->engine_data, for_writing, &data, &o->load_error, &tofree);
695 695
696 /* if we fail to get engine_data, we have to return NULL */ 696 /* if we fail to get engine_data, we have to return NULL */
697 if (!pixels) return NULL; 697 if (!pixels || !data) goto error;
698 698
699 if (!tofree) 699 if (!tofree)
700 { 700 {