From: Enlightenment S. <no-...@en...> - 2011-10-19 12:15:47
|
Log: elementary: check against NULL widget also. Author: cedric Date: 2011-10-19 05:15:41 -0700 (Wed, 19 Oct 2011) New Revision: 64175 Trac: http://trac.enlightenment.org/e/changeset/64175 Modified: trunk/elementary/src/lib/elm_widget.h Modified: trunk/elementary/src/lib/elm_widget.h =================================================================== --- trunk/elementary/src/lib/elm_widget.h 2011-10-19 12:14:31 UTC (rev 64174) +++ trunk/elementary/src/lib/elm_widget.h 2011-10-19 12:15:41 UTC (rev 64175) @@ -653,7 +653,7 @@ if (!elm_widget_is_check(obj)) return #define ELM_CHECK_WIDTYPE(obj, widtype) \ - if (!elm_widget_type_check((obj), (widtype), __func__)) return + if (!obj || !elm_widget_type_check((obj), (widtype), __func__)) return #define ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, ...) \ ELM_WIDGET_ITEM_CHECK_OR_RETURN((Elm_Widget_Item *)it, __VA_ARGS__); \ |