pixmap leaking

So I fixed a little Pixmap leak in OOo and afterwards wanted to see what the the remaining pixmaps might be. Stripping down this code to gave me a quick and dirty Pixmap browser that takes pixmap ids from stdin and then I stuffed a LD_PRELOAD lib in there to intercept OOo’s XCreatePixmap and XFreePixmap and fed the list of unfreed pixmaps to the browser and ta-da intsta-handy debugging tool. pixmaptracker and browser.

Leave a Reply