Get rid of a huge memory leak caused by improper init/shutdown of eina and ewl.
This commit is contained in:
parent
ec9cc45f88
commit
02d0a9834a
@ -157,8 +157,8 @@ SHUTDOWN:
|
|||||||
ecore_shutdown();
|
ecore_shutdown();
|
||||||
edje_shutdown();
|
edje_shutdown();
|
||||||
efreet_shutdown();
|
efreet_shutdown();
|
||||||
eina_shutdown();
|
|
||||||
ewl_shutdown();
|
ewl_shutdown();
|
||||||
|
eina_shutdown();
|
||||||
|
|
||||||
printf("Program Done\n");
|
printf("Program Done\n");
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -25,6 +25,12 @@ ecdb_custom_filelist_new(void)
|
|||||||
Ewl_Widget *ret;
|
Ewl_Widget *ret;
|
||||||
|
|
||||||
ret = ewl_filelist_new();
|
ret = ewl_filelist_new();
|
||||||
|
if (!ret)
|
||||||
|
{
|
||||||
|
printf("ecdb_custom_filelist_new: NULL return!\n");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
ewl_model_data_unref_set(EWL_FILELIST(ret)->model,
|
ewl_model_data_unref_set(EWL_FILELIST(ret)->model,
|
||||||
ecdb_custom_filelist_model_data_unref);
|
ecdb_custom_filelist_model_data_unref);
|
||||||
ewl_model_data_fetch_set(EWL_FILELIST(ret)->model,
|
ewl_model_data_fetch_set(EWL_FILELIST(ret)->model,
|
||||||
|
@ -183,6 +183,9 @@ ecdb_create_main_gui(void)
|
|||||||
Evas_Object *gui;
|
Evas_Object *gui;
|
||||||
Evas_Coord mw, mh;
|
Evas_Coord mw, mh;
|
||||||
|
|
||||||
|
/* This would be wonderful, but its a bit glitchy
|
||||||
|
em->main_win_ee = ecore_evas_gl_x11_new(0, 0, 0, 0, 255, 255);
|
||||||
|
*/
|
||||||
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
|
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
|
||||||
|
|
||||||
if (!em->main_win_ee)
|
if (!em->main_win_ee)
|
||||||
|
Loading…
Reference in New Issue
Block a user