aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/evas/src/lib/canvas/evas_callbacks.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2010-03-29 02:40:49 +0000
committerCarsten Haitzler <raster@rasterman.com>2010-03-29 02:40:49 +0000
commit46e1d8a866dddd6ffd4731291bb68e289c07e5fe (patch)
tree73d94eee0f478d0f2baf4f22acce904b76c272f9 /legacy/evas/src/lib/canvas/evas_callbacks.c
parentefreet: Only update cache files if changed (diff)
downloadefl-46e1d8a866dddd6ffd4731291bb68e289c07e5fe.tar.gz
fix small leak - cannvas callbacks not cleaned.
SVN revision: 47551
Diffstat (limited to 'legacy/evas/src/lib/canvas/evas_callbacks.c')
-rw-r--r--legacy/evas/src/lib/canvas/evas_callbacks.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_callbacks.c b/legacy/evas/src/lib/canvas/evas_callbacks.c
index 52632425b5..b3b61515ef 100644
--- a/legacy/evas/src/lib/canvas/evas_callbacks.c
+++ b/legacy/evas/src/lib/canvas/evas_callbacks.c
@@ -74,6 +74,16 @@ evas_object_event_callback_cleanup(Evas_Object *obj)
}
void
+evas_event_callback_cleanup(Evas *e)
+{
+ /* MEM OK */
+ if (!e->callbacks) return;
+ evas_event_callback_list_post_free(&e->callbacks->callbacks);
+ free(e->callbacks);
+ e->callbacks = NULL;
+}
+
+void
evas_event_callback_call(Evas *e, Evas_Callback_Type type, void *event_info)
{
Eina_Inlist **l_mod = NULL, *l;