diff options
author | David Walter Seikel | 2014-05-20 18:25:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-20 18:25:58 +1000 |
commit | 315aaabbce6b2db52ff5796708b777b488fd848e (patch) | |
tree | b58c92292cda35e4435b2448d61a654e30580c7d /src/extantz/scenri.c | |
parent | Clean up the server startup and connection a bit. (diff) | |
download | SledjHamr-315aaabbce6b2db52ff5796708b777b488fd848e.zip SledjHamr-315aaabbce6b2db52ff5796708b777b488fd848e.tar.gz SledjHamr-315aaabbce6b2db52ff5796708b777b488fd848e.tar.bz2 SledjHamr-315aaabbce6b2db52ff5796708b777b488fd848e.tar.xz |
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.
Diffstat (limited to 'src/extantz/scenri.c')
-rw-r--r-- | src/extantz/scenri.c | 17 |
1 files changed, 15 insertions, 2 deletions
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) | |||
143 | return scene; | 143 | return scene; |
144 | } | 144 | } |
145 | 145 | ||
146 | void scenriDel(globals *ourGlobals) | 146 | void scenriDel(Scene_Data *scene) |
147 | { | 147 | { |
148 | eo_unref(ourGlobals->scene->image); | 148 | // TODO - I should probably free up all this Evas_3D stuff. Oddly Eo doesn't bitch about it, only valgrind. |
149 | // Eo bitches if they are unref'd here. | ||
150 | // So either Eo or valgrind bitches, depending on what I do. I'll leave them commented out, let valgrind bitch, and blame Evas_3D. | ||
151 | // eo_unref(scene->light_node); | ||
152 | // eo_unref(scene->light); | ||
153 | |||
154 | // TODO - Should have a separate cameraDel() for these. | ||
155 | free(scene->move); | ||
156 | // eo_unref(scene->camera_node); | ||
157 | |||
158 | eo_unref(scene->image); | ||
159 | eo_unref(scene->scene); | ||
160 | // eo_unref(scene->root_node); | ||
161 | free(scene); | ||
149 | } | 162 | } |