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>
This commit is contained in:
Chris Michael 2017-11-20 11:27:15 -05:00
parent 36b6935304
commit 0cf806005e
1 changed files with 4 additions and 1 deletions

View File

@ -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;