Enlightenment CVS committal
Author : doursse
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_grid.h ewl_grid.c
Log Message:
leak--. It remains the cells that are data of the grid (l. 308 and 318). Also,
is the rchildren member necessary ? (ewl_grid.h)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_grid.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_grid.h 12 Jan 2006 18:21:18 -0000 1.6
+++ ewl_grid.h 29 Jan 2006 09:56:19 -0000 1.7
@@ -95,6 +95,7 @@
*/
void ewl_grid_realize_cb(Ewl_Widget *w, void *ev_data, void *user_data);
void ewl_grid_configure_cb(Ewl_Widget *w, void *ev_data, void *user_data);
+void ewl_grid_destroy_cb(Ewl_Widget *w, void *ev_data , void *user_data);
void ewl_grid_child_show_cb(Ewl_Container *p, Ewl_Widget *c);
void ewl_grid_child_resize_cb(Ewl_Container *p, Ewl_Widget *child,
int size, Ewl_Orientation o);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_grid.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_grid.c 27 Jan 2006 02:01:07 -0000 1.10
+++ ewl_grid.c 29 Jan 2006 09:56:21 -0000 1.11
@@ -90,6 +90,8 @@
ewl_grid_realize_cb, NULL);
ewl_callback_append(EWL_WIDGET(g), EWL_CALLBACK_CONFIGURE,
ewl_grid_configure_cb, NULL);
+ ewl_callback_prepend(EWL_WIDGET(g), EWL_CALLBACK_DESTROY,
+ ewl_grid_destroy_cb, NULL);
ewl_widget_focusable_set(EWL_WIDGET(g), FALSE);
@@ -521,6 +523,26 @@
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
+void
+ewl_grid_destroy_cb(Ewl_Widget *w, void *ev_data __UNUSED__,
+ void *user_data __UNUSED__)
+{
+ Ewl_Grid *g;
+
+ DENTER_FUNCTION(DLEVEL_STABLE);
+ DCHECK_PARAM_PTR("w", w);
+ DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
+
+ g = EWL_GRID(w);
+
+ IF_FREE(g->col_size)
+ IF_FREE(g->row_size)
+ g->col_size = NULL;
+ g->row_size = NULL;
+
+ DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
static void
ewl_grid_resize(Ewl_Grid *g)
{
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs