Fix window decorations being leaked.

Change-Id: If0483f5e81a033b275ddc14eb1e44ff82fa1ce65
Reviewed-by: Giulio Camuffo <giulio.camuffo@jollamobile.com>
This commit is contained in:
Robin Burchell 2014-08-20 21:33:55 +02:00
parent 8975683c37
commit 9ac0da7c31

View File

@ -130,6 +130,8 @@ QWaylandWindow::QWaylandWindow(QWindow *window)
QWaylandWindow::~QWaylandWindow()
{
delete mWindowDecoration;
if (isInitialized()) {
delete mShellSurface;
destroy();