Don't double-delete Window::handle

It also gets deleted when cleaning up the Workspace.

Found using ASAN.
master
Aleix Pol 2020-08-14 16:51:46 +02:00
parent 71de41a570
commit be22876348
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
#ifndef KWIN_QPA_WINDOW_H
#define KWIN_QPA_WINDOW_H
#include <QPointer>
#include <qpa/qplatformwindow.h>
class QOpenGLFramebufferObject;
@ -44,7 +45,7 @@ private:
void map();
void unmap();
InternalClient *m_handle = nullptr;
QPointer<InternalClient> m_handle;
QSharedPointer<QOpenGLFramebufferObject> m_contentFBO;
quint32 m_windowId;
bool m_resized = false;