Fix pixmap leak when the tray icon changes (e.g. when it's animated). KDE/4.10
author Andreas Hartmetz
()
committer David Faure
()
commit 2c810db3e41d56ad7dd8ec3436f3cf3abcc31983
tree a9bf72acad22228e3433f175bb5728c3cfc66396
parent fbc7042a6c00562f62b3f1defb4ae9132da3cbbf
Fix pixmap leak when the tray icon changes (e.g. when it's animated).

This could easily leak 4KB/second of X pixmap memory.
All the actual difference comes from the QPixmap::ExplicitlyShared
argument, the rest is making some wonky-looking but working code look
less wonky.

BUG: 314919
(cherry picked from commit ec8e405ca447ba5bc5a9f6a2a12e2fa90412a0d4)
plasma/generic/applets/systemtray/protocols/fdo/x11embedcontainer.cpp