summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2_buffer.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-11-20 11:27:15 -0500
committerChris Michael <cp.michael@samsung.com>2017-11-20 11:27:15 -0500
commit0cf806005e32827f174f42cba27192c47ed9c4a7 (patch)
treee7f71fbc6be2feb3b77ff56528c6f67ff0c15da6 /src/lib/ecore_wl2/ecore_wl2_buffer.c
parent36b6935304a2d26c64c45e93f677b74612eea814 (diff)
ecore-wl2: Destroy buffer before we exit the buffer_test function
Small patch to destroy our test buffer before we exit the _ecore_wl2_buffer_test function so that we do not leak here. @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_buffer.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_buffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_buffer.c b/src/lib/ecore_wl2/ecore_wl2_buffer.c
index de0b6aa78b..3aabe46858 100644
--- a/src/lib/ecore_wl2/ecore_wl2_buffer.c
+++ b/src/lib/ecore_wl2/ecore_wl2_buffer.c
@@ -612,7 +612,10 @@ _ecore_wl2_buffer_test(Ecore_Wl2_Display *ewd)
612 DRM_FORMAT_ARGB8888, 0); 612 DRM_FORMAT_ARGB8888, 0);
613 ecore_wl2_display_flush(ewd); 613 ecore_wl2_display_flush(ewd);
614 614
615 return; 615 ecore_wl2_buffer_destroy(buf);
616
617 return;
618
616fail: 619fail:
617 _buffer_manager_destroy(); 620 _buffer_manager_destroy();
618 ewd->wl.dmabuf = NULL; 621 ewd->wl.dmabuf = NULL;