Skip to content

Properly discard window texture provider when thumbnail item shows only icon

If the thumbnail item shows only the window icon, neither m_glxPixmap nor m_image will have valid values, so m_textureProvider won't be destroyed properly. Plasma can leak some memory.

This change addresses that by moving destruction of the texture provider in a separate runnable, which is scheduled to run regardless whether the window is actually redirected.

Merge request reports

Loading