Evas smart clipped: Potentially fix memory leak as reported by raster.

Not really properly tested, sorry for that.

SVN revision: 82271
This commit is contained in:
Tom Hacohen 2013-01-05 12:14:41 +00:00
parent f5a849a691
commit af94656955
1 changed files with 4 additions and 5 deletions

View File

@ -110,11 +110,10 @@ evas_object_smart_clipped_smart_del(Evas_Object *eo_obj)
_evas_object_smart_members_all_del(eo_obj);
// BIG BIG BIG WARNING! withint this cso - anyone using the smart_clipped
// interface is leaking unless they are using eo! this here is an abi break!
// we NEED this free back, but there is a lot of surgery to do to make it
// able to go back in! mailing list discussion!
// free(cso);
/* If it's a legacy smart object, we should free the cso. */
if (!eo_isa(eo_obj, MY_CLASS))
free(cso);
evas_object_smart_data_set(eo_obj, NULL);
}