OSDN Git Service

Dont delete buffers which are not owned by us.
authorjohnson.lin <johnson.lin@intel.com>
Mon, 20 Feb 2017 03:10:21 +0000 (19:10 -0800)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Wed, 22 Feb 2017 09:44:59 +0000 (01:44 -0800)
In case of VirtualDisplay, we get the output buffer handle
from App. App owns the life time of this buffer and should
delete the resource instead of us.

Jira: IAHWC-45
Test: Fix crashes related to double deletion on Linux.

Signed-off-by: johnson.lin <johnson.lin@intel.com>
common/display/virtualdisplay.cpp

index 809eb32..201bcb2 100644 (file)
@@ -33,7 +33,6 @@ VirtualDisplay::VirtualDisplay(uint32_t gpu_fd,
 }
 
 VirtualDisplay::~VirtualDisplay() {
-  delete output_handle_;
 }
 
 void VirtualDisplay::InitVirtualDisplay(uint32_t width, uint32_t height) {