Launchpad opens duplicate pixbufs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
launchpad-integration (Ubuntu) |
Fix Released
|
Undecided
|
Ubuntu Desktop Bugs |
Bug Description
If one runs valgrind with --show-reachable, the following backtrace can be seen:
==16971== 79,872 bytes in 78 blocks are still reachable in loss record 12,191 of 12,200
==16971== at 0x401C422: malloc (vg_replace_
==16971== by 0x4A49E6D: g_try_malloc (in /usr/lib/
==16971== by 0x46F6E1B: gdk_pixbuf_new (gdk-pixbuf.c:293)
==16971== by 0x53D9A94: ??? (io-png.c:294)
==16971== by 0x46F9A2E: _gdk_pixbuf_
==16971== by 0x46F9CBD: gdk_pixbuf_
==16971== by 0x402FA68: launchpad_
==16971== by 0x402FADE: (within /usr/lib/
==16971== by 0x402FB7E: launchpad_
==16971== by 0x809B9BA: (within /usr/bin/gedit)
==16971== by 0x809F059: (within /usr/bin/gedit)
==16971== by 0x4A0F381: g_type_
Looking at strace -eopen gedit, there is the sequence:
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
open("/
It looks like duplicates of the images are being created. The icons should really be in /usr/share/icons so that the mmap'd cache can be used. This would also make the icons themeable.
Michael, you think we can fix this as part of IconthemeEveryw here?