Thanks Hermet for you reply.
In my test, i find that if i call function edje_object_file_set(Edje_Object *obj, const char *file, const char *group), even i call evas_object_del(Edje_Object *obj); to delete the obj, the memory of my program will keep growing, if i am not use edje_object_file_set() then this issue will not exists. Is there a way to free the memory of edje_object_file_set() ? Please advise, thanks. At 2019-11-26 12:24:45, "Hermet Park" <hermetp...@gmail.com> wrote: >Once object is deleted, the subsequent memory belonging to the object will >be removed as well. >You don't need to care about it. Callbacks neither. > >On Mon, Nov 25, 2019 at 9:12 PM Jing <chenjing...@126.com> wrote: > >> Hi all, >> I have some memory free questions when using below two functions: >> >> >> 1. EAPI Eina_Bool edje_object_file_set(Evas_Object *obj, const char >> *file, const char *group); >> --- After this function done, i will call evas_object_del (obj) to >> delete the obj, anything else that i need to free ? For example, the edj >> file used in this funciton? >> >> >> 2. evas_object_event_callback_add(Evas_Object *eo_obj, Evas_Callback_Type >> type, Evas_Object_Event_Cb func, const void *data) >> ---- After this function done, i will call evas_object_del (obj) to >> delete the obj, the callback will be auto deleted after evas_object_del >> or i have to use evas_object_event_callback_del(Evas_Object *eo_obj, >> Evas_Callback_Type type, Evas_Object_Event_Cb func) to delete ? >> >> >> Thanks. >> >> >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > > >-- >Regards, Hermet > >_______________________________________________ >enlightenment-devel mailing list >enlightenment-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/enlightenment-devel _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel