Commit be228763 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't double-delete Window::handle

It also gets deleted when cleaning up the Workspace.

Found using ASAN.
parent 71de41a5
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment