From 1c391894864fe860859d72d767ce9ef5e5ce2551 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Tue, 22 May 2012 08:08:16 +0000 Subject: [PATCH] Revert "elementary/ctxpopup - but there would be no parent NULL case." There is a case that parent can be NULL when you call elm_ctxpopup_add(). This reverts commit 8bc665a6ebc9daf0d5faa46223635f46f3d0f682. SVN revision: 71305 --- src/lib/elc_ctxpopup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c index fb4bf1b..4d5c87c 100644 --- a/src/lib/elc_ctxpopup.c +++ b/src/lib/elc_ctxpopup.c @@ -215,7 +215,7 @@ static void _parent_cut_off(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) return; + if (!wd || !wd->parent) return; evas_object_event_callback_del_full(wd->parent, EVAS_CALLBACK_DEL, -- 2.7.4