Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_tree.h ewl_tree.c
Log Message:
fix memory leak
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_tree.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_tree.h 12 Jul 2005 18:37:33 -0000 1.8
+++ ewl_tree.h 21 Jul 2005 20:51:00 -0000 1.9
@@ -126,6 +126,7 @@
void ewl_tree_row_select_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_tree_row_hide_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_tree_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);
+void ewl_tree_destroy_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_tree_hscroll_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_tree_child_resize_cb(Ewl_Container *c);
void ewl_tree_node_child_add_cb(Ewl_Container *c, Ewl_Widget *w);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_tree.c 12 Jul 2005 18:37:33 -0000 1.10
+++ ewl_tree.c 21 Jul 2005 20:51:00 -0000 1.11
@@ -67,6 +67,9 @@
ewl_callback_append(EWL_WIDGET(tree), EWL_CALLBACK_CONFIGURE,
ewl_tree_configure_cb, NULL);
+ ewl_callback_append(EWL_WIDGET(tree), EWL_CALLBACK_DESTROY,
+ ewl_tree_destroy_cb, NULL);
+
tree->ncols = columns;
row = ewl_row_new();
@@ -589,6 +592,19 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+void ewl_tree_destroy_cb(Ewl_Widget *w, void *ev_data __UNUSED__,
+ void *user_data __UNUSED__)
+{
+ Ewl_Tree *tree;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+
+ tree = EWL_TREE(w);
+ ecore_list_destroy(tree->selected);
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
void
ewl_tree_child_resize_cb(Ewl_Container *c)
{
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs