forked from enlightenment/efl
exactness: inspect: free image before leaving scope
We need to amke sure we free this images before we return. CID: 1419848 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D11413
This commit is contained in:
parent
64b83d1e2e
commit
e638dbd8ea
|
@ -505,6 +505,7 @@ _scn_content_get(void *data, Evas_Object *gl, const char *part)
|
||||||
evas_object_image_data_set(evas_img, ex_imgO->pixels);
|
evas_object_image_data_set(evas_img, ex_imgO->pixels);
|
||||||
evas_object_show(ic);
|
evas_object_show(ic);
|
||||||
elm_object_part_content_set(bt, "icon", ic);
|
elm_object_part_content_set(bt, "icon", ic);
|
||||||
|
exactness_image_free(ex_imgO);
|
||||||
return bt;
|
return bt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue