Revert "elementary/ctxpopup - but there would be no parent NULL case."
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 22 May 2012 08:08:16 +0000 (08:08 +0000)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 22 May 2012 08:08:16 +0000 (08:08 +0000)
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

index fb4bf1b..4d5c87c 100644 (file)
@@ -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,