ecore-wl2: pass display to aux hint event_adds
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 4 Aug 2017 20:11:00 +0000 (16:11 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 4 Aug 2017 20:10:31 +0000 (16:10 -0400)
fixes display refcounting

ref 6bb56b3f5651fab85b1a0a1a1a8040f4e488c799

@fix

src/lib/ecore_wl2/ecore_wl2_display.c

index f1699ec..dc7fb0d 100644 (file)
@@ -143,7 +143,7 @@ _aux_hints_supported_aux_hints(void *data, struct efl_aux_hints *aux_hints EINA_
    ev->win = win->id;
    ev->display = ewd;
    ewd->refs++;
-   ecore_event_add(ECORE_WL2_EVENT_AUX_HINT_SUPPORTED, ev, _display_event_free, NULL);
+   ecore_event_add(ECORE_WL2_EVENT_AUX_HINT_SUPPORTED, ev, _display_event_free, ewd);
 }
 
 static void
@@ -163,7 +163,7 @@ _aux_hints_allowed_aux_hint(void *data, struct efl_aux_hints *aux_hints  EINA_UN
    ev->id = id;
    ev->display = ewd;
    ewd->refs++;
-   ecore_event_add(ECORE_WL2_EVENT_AUX_HINT_ALLOWED, ev, _display_event_free, NULL);
+   ecore_event_add(ECORE_WL2_EVENT_AUX_HINT_ALLOWED, ev, _display_event_free, ewd);
 }
 
  static void