diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-08-10 23:30:28 +0100 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2019-08-11 12:47:38 +0100 |
commit | b0ad81d927cfc9d2866f061c2d017b99ecc4505f (patch) | |
tree | 2e7dcc1fd150d8faa8be48da23acce8e867e2103 | |
parent | 807c8e735761a950774fe70611778bcd97b655e3 (diff) | |
download | efl-b0ad81d927cfc9d2866f061c2d017b99ecc4505f.tar.gz |
elm ctxpopup - be consistent with scope data checks
makes coverity happy.
CID 1403898
-rw-r--r-- | src/lib/elementary/elc_ctxpopup.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/elementary/elc_ctxpopup.c b/src/lib/elementary/elc_ctxpopup.c index c391573c0c..a9721ea0c0 100644 --- a/src/lib/elementary/elc_ctxpopup.c +++ b/src/lib/elementary/elc_ctxpopup.c @@ -863,9 +863,12 @@ _elm_ctxpopup_item_elm_widget_item_del_pre(Eo *eo_ctxpopup_it EINA_UNUSED, if (ctxpopup_it->list_item) { Elm_Ctxpopup_Data *sd = efl_data_scope_safe_get(WIDGET(ctxpopup_it), MY_CLASS); - if (sd->list) - elm_object_item_del(ctxpopup_it->list_item); - ctxpopup_it->list_item = NULL; + if (sd) + { + if (sd->list) + elm_object_item_del(ctxpopup_it->list_item); + ctxpopup_it->list_item = NULL; + } } } |