diff --git a/effects/magnifier/magnifier.cpp b/effects/magnifier/magnifier.cpp index 011ac69ea3..22b9994a87 100644 --- a/effects/magnifier/magnifier.cpp +++ b/effects/magnifier/magnifier.cpp @@ -87,6 +87,7 @@ void MagnifierEffect::destroyPixmap() m_picture.reset(); if (m_pixmap != XCB_PIXMAP_NONE) { xcb_free_pixmap(connection(), m_pixmap); + m_pixmap = XCB_PIXMAP_NONE; } #endif }