From b540a30d95448b49da4a22b7222eb0484f850d26 Mon Sep 17 00:00:00 2001 From: Hosang Kim Date: Thu, 12 May 2022 19:01:20 +0900 Subject: [PATCH] libaurum: fix memory leak in takeScreenshot Change-Id: I0d98b8c1f665c94585b0e657774f04ee48fd69fa --- libaurum/src/Impl/TizenDeviceImpl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libaurum/src/Impl/TizenDeviceImpl.cc b/libaurum/src/Impl/TizenDeviceImpl.cc index 1040f5c..f8b7d42 100644 --- a/libaurum/src/Impl/TizenDeviceImpl.cc +++ b/libaurum/src/Impl/TizenDeviceImpl.cc @@ -282,6 +282,7 @@ bool TizenDeviceImpl::takeScreenshot(std::string path, float scale, int quality) if (tbm_surface) { tdm_helper_dump_buffer(tbm_surface, path.c_str()); sync(); + tbm_surface_destroy(tbm_surface); } else { efl_util_screenshot_deinitialize(screenshot); return false; -- 2.7.4