Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_widget.c Log Message: Set these to NULL after free, these functions don't do it for you like the FREE macro. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_widget.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -3 -r1.39 -r1.40 --- ewl_widget.c 14 Nov 2005 22:24:04 -0000 1.39 +++ ewl_widget.c 16 Nov 2005 23:25:36 -0000 1.40 @@ -1585,23 +1585,36 @@ */ ewl_theme_widget_shutdown(w); - if (w->appearance) + if (w->appearance) { ecore_string_release(w->appearance); + w->appearance = NULL; + } - if (w->inheritance) + if (w->inheritance) { ecore_string_release(w->inheritance); + w->inheritance = NULL; + } - if (w->bit_state) + if (w->bit_state) { ecore_string_release(w->bit_state); + w->inheritance = NULL; + w->bit_state = NULL; + } - if (w->theme) + if (w->theme) { ecore_hash_destroy(w->theme); + w->theme = NULL; + } - if (w->theme_text) + if (w->theme_text) { ecore_hash_destroy(w->theme_text); + w->theme_text = NULL; + } - if (w->data) + if (w->data) { ecore_hash_destroy(w->data); + w->data = NULL; + } DLEAVE_FUNCTION(DLEVEL_STABLE); } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs