Patch Set 2: Looks good to me, but someone else must approve; IP review completed

I fixed the resource leak by managing GDI resources using LocalResourceManager. I removed the second sentence of the commit message to avoid this confusion.