forked from enlightenment/efl
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:
parent
dadc1451e7
commit
8287202c43
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue