devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=0cf806005e32827f174f42cba27192c47ed9c4a7

commit 0cf806005e32827f174f42cba27192c47ed9c4a7
Author: Chris Michael <[email protected]>
Date:   Mon Nov 20 11:27:15 2017 -0500

    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 <[email protected]>
---
 src/lib/ecore_wl2/ecore_wl2_buffer.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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)
                                      DRM_FORMAT_ARGB8888, 0);
    ecore_wl2_display_flush(ewd);
 
-  return;
+   ecore_wl2_buffer_destroy(buf);
+
+   return;
+
 fail:
   _buffer_manager_destroy();
   ewd->wl.dmabuf = NULL;

-- 


Reply via email to