summaryrefslogtreecommitdiffstats
path: root/src/render/backend/platformsurfacefilter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/backend/platformsurfacefilter.cpp')
-rw-r--r--src/render/backend/platformsurfacefilter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/backend/platformsurfacefilter.cpp b/src/render/backend/platformsurfacefilter.cpp
index 891e30c44..7458f607d 100644
--- a/src/render/backend/platformsurfacefilter.cpp
+++ b/src/render/backend/platformsurfacefilter.cpp
@@ -107,6 +107,10 @@ bool PlatformSurfaceFilter::eventFilter(QObject *obj, QEvent *e)
// If we remove it, the call to isSurfaceValid will
// implicitely return false
PlatformSurfaceFilter::m_surfacesValidity.remove(m_surface);
+ if (m_obj) {
+ m_obj->removeEventFilter(this);
+ m_obj = nullptr;
+ }
break;
}