Don't double-delete Window::handle
It also gets deleted when cleaning up the Workspace. Found using ASAN.
This commit is contained in:
parent
71de41a570
commit
be22876348
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue