summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <olivier.blin@softathome.com>2015-03-20 18:38:14 +0100
committerOlivier Blin <qt@blino.org>2015-03-24 22:24:01 +0000
commitfc968d9ff868279350059bd37c7cbec8116a0156 (patch)
tree763703c85767c6ae1f632d5c17b3521262945dd4
parent6c97447e56bc6ac48857bbf338af364774f90254 (diff)
ShellSurface: fix leak of QWaylandSurfaceItem on destruction
The QWaylandSurfaceView/QWaylandSurfaceItem object is never destroyed from ShellSurface. This was also leaking the underlying GL texture. Task-number: QTBUG-41180 Change-Id: If74c956075744115b8b5a7e8cb89b584714ec7e6 Done-with: Nicolas Marc <nicolas.marc@softathome.com> Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
-rw-r--r--src/compositor/wayland_wrapper/qwlshellsurface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/qwlshellsurface.cpp b/src/compositor/wayland_wrapper/qwlshellsurface.cpp
index 80304f3cb..856dd2f32 100644
--- a/src/compositor/wayland_wrapper/qwlshellsurface.cpp
+++ b/src/compositor/wayland_wrapper/qwlshellsurface.cpp
@@ -103,6 +103,7 @@ ShellSurface::ShellSurface(Shell *shell, wl_client *client, uint32_t id, Surface
ShellSurface::~ShellSurface()
{
+ delete m_view;
}
void ShellSurface::sendConfigure(uint32_t edges, int32_t width, int32_t height)