ecore-wl2: Don't free display structure during display cleanup function

Due to reference caching, we cannot free the display structure here
yet. During calls to ecore_wl2_display_destroy (or others), if the
number of references reaches zero, then we end up calling
wl_display_destroy (or equivelant). If we free our display structure
during cleanup function, then calls to wl_display_destroy will cause a
segfault as our display->wayland_display has already been freed from
the structure

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-12-07 10:00:23 -05:00
parent dadc1451e7
commit 8287202c43
1 changed files with 0 additions and 1 deletions

View File

@ -363,7 +363,6 @@ _ecore_wl2_display_cleanup(Ecore_Wl2_Display *ewd)
eina_hash_del_by_key(_client_displays, ewd->name);
free(ewd->name);
free(ewd);
}
Ecore_Wl2_Window *