diff src/glyphs-msw.c @ 308:33bdb3d4b97f r21-0b52

Import from CVS: tag r21-0b52
author cvs
date Mon, 13 Aug 2007 10:42:44 +0200
parents c6de09ad3017
children 19dcec799385
line wrap: on
line diff
--- a/src/glyphs-msw.c	Mon Aug 13 10:41:59 2007 +0200
+++ b/src/glyphs-msw.c	Mon Aug 13 10:42:44 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;
 	}