Bug 318636 - Tooltips are leaking X Pixmaps
Summary: Tooltips are leaking X Pixmaps
Status: RESOLVED FIXED
Alias: None
Product: plasma4
Classification: Unclassified
Component: general (show other bugs)
Version: 4.10.2
Platform: Other Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-20 13:43 UTC by Martin Flöser
Modified: 2013-04-20 13:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.10.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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