From: Derek Foreman Date: Tue, 21 Nov 2017 16:09:15 +0000 (-0600) Subject: ecore_wl2: Fix buffer manager refcounting X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1583 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f3edead9d959ab86265f8d8ca1750a8ddf7ae4e;p=platform%2Fupstream%2Fefl.git ecore_wl2: Fix buffer manager refcounting commit 0cf806005e32827f174f42cba27192c47ed9c4a7 correctly fixed a leaked buffer. However, other code was already accounting for the leaked reference to the buffer manager, so an extra deref happened and broke the universe - but only on hardware that no developer has access to for testing. --- diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c index 3aabe46..8c4b0ff 100644 --- a/src/lib/ecore_wl2/ecore_wl2_buffer.c +++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c @@ -583,7 +583,6 @@ _create_failed(void *data, struct zwp_linux_buffer_params_v1 *params) Ecore_Wl2_Display *ewd = data; zwp_linux_buffer_params_v1_destroy(params); - _buffer_manager_deref(); _buffer_manager_destroy(); ewd->wl.dmabuf = NULL; }