forked from enlightenment/efl
work on valgrind issue... this should fix dropshadow - evas didnt allow us to
nuke the data. SVN revision: 14064
This commit is contained in:
parent
7037866a71
commit
3ca85e87e2
|
@ -573,7 +573,6 @@ evas_object_image_data_set(Evas_Object *obj, void *data)
|
|||
Evas_Object_Image *o;
|
||||
void *p_data;
|
||||
|
||||
if (!data) return;
|
||||
MAGIC_CHECK(obj, Evas_Object, MAGIC_OBJ);
|
||||
return;
|
||||
MAGIC_CHECK_END();
|
||||
|
@ -582,6 +581,8 @@ evas_object_image_data_set(Evas_Object *obj, void *data)
|
|||
return;
|
||||
MAGIC_CHECK_END();
|
||||
p_data = o->engine_data;
|
||||
if (data)
|
||||
{
|
||||
if (o->engine_data)
|
||||
o->engine_data = obj->layer->evas->engine.func->image_data_put(obj->layer->evas->engine.data.output,
|
||||
o->engine_data,
|
||||
|
@ -591,7 +592,17 @@ evas_object_image_data_set(Evas_Object *obj, void *data)
|
|||
o->cur.image.w,
|
||||
o->cur.image.h,
|
||||
data);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (o->engine_data)
|
||||
obj->layer->evas->engine.func->image_free(obj->layer->evas->engine.data.output,
|
||||
o->engine_data);
|
||||
o->load_error = EVAS_LOAD_ERROR_NONE;
|
||||
o->cur.image.w = 0;
|
||||
o->cur.image.h = 0;
|
||||
o->engine_data = NULL;
|
||||
}
|
||||
if (o->engine_data)
|
||||
o->engine_data = obj->layer->evas->engine.func->image_alpha_set(obj->layer->evas->engine.data.output,
|
||||
o->engine_data,
|
||||
|
|
Loading…
Reference in New Issue