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/scenri.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'src/extantz/scenri.c') diff --git a/src/extantz/scenri.c b/src/extantz/scenri.c index eaec88e..0210a48 100644 --- a/src/extantz/scenri.c +++ b/src/extantz/scenri.c @@ -143,7 +143,20 @@ Scene_Data *scenriAdd(Evas_Object *win) return scene; } -void scenriDel(globals *ourGlobals) +void scenriDel(Scene_Data *scene) { - eo_unref(ourGlobals->scene->image); + // TODO - I should probably free up all this Evas_3D stuff. Oddly Eo doesn't bitch about it, only valgrind. + // Eo bitches if they are unref'd here. + // So either Eo or valgrind bitches, depending on what I do. I'll leave them commented out, let valgrind bitch, and blame Evas_3D. +// eo_unref(scene->light_node); +// eo_unref(scene->light); + + // TODO - Should have a separate cameraDel() for these. + free(scene->move); +// eo_unref(scene->camera_node); + + eo_unref(scene->image); + eo_unref(scene->scene); +// eo_unref(scene->root_node); + free(scene); } -- cgit v1.1