evas: efl_gfx_image_stretch_region_set need access to image state before it is freed.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D10814
This commit is contained in:
Cedric BAIL 2019-12-05 16:01:17 -08:00 committed by Marcel Hollerbach
parent 115a9a22b1
commit 574d1192bb
1 changed files with 1 additions and 1 deletions

View File

@ -1683,8 +1683,8 @@ _efl_canvas_image_internal_efl_object_destructor(Eo *eo_obj, Evas_Image_Data *o
if (obj->legacy.ctor)
evas_object_image_video_surface_set(eo_obj, NULL);
evas_object_image_free(eo_obj, obj);
efl_gfx_image_stretch_region_set(eo_obj, NULL, NULL);
evas_object_image_free(eo_obj, obj);
efl_destructor(efl_super(eo_obj, MY_CLASS));
}