Bug 318636

Summary: Tooltips are leaking X Pixmaps
Product: [Plasma] plasma4 Reporter: Martin Flöser <mgraesslin>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.10.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.3

Description Martin Flöser 2013-04-20 13:43:43 UTC
The shadows of the Plasma styled tooltips are leaking 8 X Pixmaps each time they are shown.

Reproducible: Always

Steps to Reproduce:
1. Install xrestop
2. start xrestop
3. search for plasma and write down the number of "Pxms" used by plasma
4. quit xrestop (q)
5. Trigger a Plasma tooltip by e.g. hovering over the clock
6. start xrestop again
7. compare number of "Pxms" with the previous one. It should have increased by eight
Actual Results:  
leak of 8 pixmaps

Expected Results:  
no leak
Comment 1 Martin Flöser 2013-04-20 13:45:50 UTC
Git commit b29820e09a0a0e355f6c8e743ca142af89118290 by Martin Gräßlin.
Committed on 20/04/2013 at 15:45.
Pushed by graesslin into branch 'KDE/4.10'.

Fix X pixmap leak in shadow handling code

Some X pixmaps were never free-ed. The code got a little bit cleaned up
by ensuring that the X Pixmap for the QPixmap is always created. This
makes sense as we can be pretty sure that we are on the raster graphics
system.
FIXED-IN: 4.10.3
REVIEW: 110029

M  +32   -20   plasma/private/dialogshadows.cpp

http://commits.kde.org/kdelibs/b29820e09a0a0e355f6c8e743ca142af89118290