elm_notify: null out allow events when its deleted
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 4 Feb 2017 22:41:55 +0000 (23:41 +0100)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 4 Feb 2017 22:59:56 +0000 (23:59 +0100)
otherwise later dismisscalls to that object will lead to spammy error
messages in the console

src/lib/elementary/elm_notify.c

index 26aec38..6bb58be 100644 (file)
@@ -688,7 +688,10 @@ _elm_notify_allow_events_set(Eo *obj, Elm_Notify_Data *sd, Eina_Bool allow)
           _block_area_clicked_cb, obj);
      }
    else
-     evas_object_del(sd->block_events);
+     {
+        evas_object_del(sd->block_events);
+        sd->block_events = NULL;
+     }
 }
 
 EOLIAN static Eina_Bool