[cairo] Huge leak in Cairo/win32

John Ehresman jpe at wingide.com
Thu Feb 24 11:19:27 PST 2005


On Sun, 2005-02-20 at 21:46 -0500, Owen Taylor wrote:
 >> Stupid question - can't we just delete the DC first rather
 >> than after the bitmap? won't that automatically unselect the bitmap
 >> and let us delete it afterwards?


Sorry I didn't reply earlier, but most of the examples I've seen select 
the original bitmap created with the DC back into the DC before 
destroying it.  This is probably needed on earlier versions of Windows 
-- MS's error checking and recovery has improved over time.

John



More information about the cairo mailing list