diff src/glyphs-msw.c @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents cc15677e0335
children d883f39b8495
line wrap: on
line diff
--- a/src/glyphs-msw.c	Mon Aug 13 11:03:09 2007 +0200
+++ b/src/glyphs-msw.c	Mon Aug 13 11:04:06 2007 +0200
@@ -521,6 +521,8 @@
 		   IMAGE_INSTANCE_PIXMAP_HEIGHT (ii), 
 		   SRCCOPY))
     {
+      DeleteObject (newbmp);
+      DeleteDC (hdcDst);
       return 0;
     }
 
@@ -553,6 +555,8 @@
 		      IMAGE_INSTANCE_PIXMAP_HEIGHT (ii), 
 		      SRCCOPY))
 	{
+	  DeleteObject (newmask);
+	  DeleteDC (hdcDst);
 	  return NULL;
 	}