summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-11-21 10:09:15 -0600
committerDerek Foreman <derekf@osg.samsung.com>2017-11-21 10:11:47 -0600
commit9f3edead9d959ab86265f8d8ca1750a8ddf7ae4e (patch)
tree8f049c2f460f4d055c734346aed03beb5fbc7a92 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parente8cfdb5dcd921aa9793c5cc42d966b2af1ac3ef3 (diff)
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.
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index 3aabe46858..8c4b0ff39e 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)
583 Ecore_Wl2_Display *ewd = data; 583 Ecore_Wl2_Display *ewd = data;
584 584
585 zwp_linux_buffer_params_v1_destroy(params); 585 zwp_linux_buffer_params_v1_destroy(params);
586 _buffer_manager_deref();
587 _buffer_manager_destroy(); 586 _buffer_manager_destroy();
588 ewd->wl.dmabuf = NULL; 587 ewd->wl.dmabuf = NULL;
589} 588}