From 315aaabbce6b2db52ff5796708b777b488fd848e Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Tue, 20 May 2014 18:25:58 +1000 Subject: The results of a session with valgrind. I'm surprised that this highly experimental code, built with chewing gum and chicken wire, had so little problems, and most of those where leaks. The majority of problems reported are from external libraries. --- src/extantz/extantz.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/extantz/extantz.c') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index ff418c0..fa38251 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -606,8 +606,6 @@ EAPI_MAIN int elm_main(int argc, char **argv) ourGlobals.ee = ecore_evas_ecore_evas_get(ourGlobals.evas); // Only use this on Evas that was created with Ecore_Evas. #endif - evas_object_event_callback_add(ourGlobals.win, EVAS_CALLBACK_RESIZE, _on_resize, &ourGlobals); - // Get the screen size. elm_win_screen_size_get(ourGlobals.win, &ourGlobals.win_x, &ourGlobals.win_y, &ourGlobals.scr_w, &ourGlobals.scr_h); ourGlobals.win_x = ourGlobals.win_x + (ourGlobals.scr_w / 3); @@ -616,6 +614,8 @@ EAPI_MAIN int elm_main(int argc, char **argv) evas_object_move(ourGlobals.win, ourGlobals.win_x, ourGlobals.win_y); evas_object_resize(ourGlobals.win, ourGlobals.win_w, ourGlobals.win_h); + evas_object_event_callback_add(ourGlobals.win, EVAS_CALLBACK_RESIZE, _on_resize, &ourGlobals); + /* Our "layers". TODO - This is out of date, I should update it. Elm win - our real main window @@ -694,7 +694,9 @@ EAPI_MAIN int elm_main(int argc, char **argv) if (ourGlobals.win) { + ecore_animator_del(ourGlobals.animator); Evas_3D_Demo_fini(&ourGlobals); + scenriDel(ourGlobals.scene); eo_unref(ourGlobals.tb); winFangDel(ourGlobals.mainWindow); } -- cgit v1.1