GDI Leak tracking tools for w9x are available in source only form from: http://msdn.microsoft.com/msdnmag/issues/01/03/leaks/print.asp I'm going to attach a zip containing the compiled GDIUsage.exe and MenuUsage.exe (compiled by kaie) Steps, run GDIUsage, take snapshot, run mozilla, open lots of mozilla things, click compare, click details in the compare collumn, type 'p' to jump to the palette section, press down to see each palette in turn, focus on the 236color palettes. For my first test, I took a snapshot, and opened a new mozilla window, my homepage is a randomizer, this time it took me to http://www.jobnext.com/resources/top10interviewtips.shtml which has 3 images all gifs. I clicked compare, details and found 3 new identical 236 color palettes.
bugs in report: I'm using a recent branch build instead of the actual release or trunk [Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.0rc1) Gecko/20020416.17].
Moving bugs to new Image: GFX component
saari? can you comment on this?
probably, palette ownership is per image... we should create one shared palette and just delete it when shutting down.
How much memory does each palette take up?
*** Bug 146001 has been marked as a duplicate of this bug. ***
This happens in the windows image code.. can you take a look and see if this could be a good win?
Each image will create it own palette.. for 8 bit images. Has to be this way.. currently we dont even have 8 bit images so this is not an issue. It will come back soon... as soon as I check in my 8 bit gif change.. but the memory savings is huge when going from 24 bit to 8 bit. Anyway.. marking this works for me.. since this is no longer true.
*** Bug 143909 has been marked as a duplicate of this bug. ***