Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_container.c ewl_widget.c Log Message: - make sure we have a widget before trying to clean it up - allow NULLs into parent_of, but just return FALSE - this makes the DEBUG build complain less when run =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_container.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_container.c 9 Oct 2005 05:18:39 -0000 1.14 +++ ewl_container.c 21 Oct 2005 21:47:16 -0000 1.15 @@ -532,9 +532,11 @@ Ewl_Widget *parent; DENTER_FUNCTION(DLEVEL_STABLE); - DCHECK_PARAM_PTR_RET("c", c, FALSE); - DCHECK_PARAM_PTR_RET("w", w, FALSE); + + if (!w) { + DRETURN_INT(FALSE, DLEVEL_STABLE); + } parent = w; while ((parent = parent->parent)) { =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_widget.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- ewl_widget.c 21 Oct 2005 21:35:24 -0000 1.28 +++ ewl_widget.c 21 Oct 2005 21:47:16 -0000 1.29 @@ -317,7 +317,8 @@ DRETURN(DLEVEL_STABLE); emb = ewl_embed_widget_find(w); - ewl_embed_info_widgets_cleanup(emb, w); + if (emb) + ewl_embed_info_widgets_cleanup(emb, w); ewl_object_visible_remove(EWL_OBJECT(w), EWL_FLAG_VISIBLE_SHOWN); ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs