From 83a37709b32a137190a143ddcd9a196a76cb9f1b Mon Sep 17 00:00:00 2001 From: cnook Date: Mon, 20 Feb 2012 11:48:31 +0000 Subject: [PATCH] From: cnook Subject: [E-devel] [Patch][elm_win] elm_win_title_set(); can make a crash with NULL Have ever try to call elm_win_title_set(win, NULL)? Then try... :-] It makes "Segmentation Fault". Yeah, we can add patch in the Ecore side, but we can prevent the segmentation fault before go inside. Please check the patch and give any feedbacks. Thanks a lot. SVN revision: 68154 --- src/lib/elm_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index b9e556c..d53ee80 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -1908,7 +1908,7 @@ elm_win_title_set(Evas_Object *obj, const char *title) Elm_Win *win; ELM_CHECK_WIDTYPE(obj, widtype); win = elm_widget_data_get(obj); - if (!win) return; + if (!win || !title) return; ecore_evas_title_set(win->ee, title); if (win->frame_obj) edje_object_part_text_set(win->frame_obj, "elm.text.title", title); -- 2.7.4