[cairo] Huge leak in Cairo/win32

Owen Taylor otaylor at redhat.com
Thu Feb 24 12:38:36 PST 2005


On Thu, 2005-02-24 at 14:19 -0500, John Ehresman wrote:
> 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.

Yuck. I have this bad feeling that I'm complicating code to deal with
something that you needed to do for 16-bit windows, or something like
that, but I'll go with the way all the examples do it to keep things
simple and avoid possible issues.

I'll commit a patch based on Hans's version.

Regards,
					Owen





More information about the cairo mailing list