fix for memory leak

Michael Stefaniuc mstefani at redhat.de
Sun Dec 30 16:11:20 CST 2001


Hello,

the attached patch fixes a memory leak I introduced with my previous
comctl32/imagelist.c patch.

Changelog:
    Michael Stefaniuc <mstefani at redhat.com>
    fix memory leak
    remove redundant ImageList_DragShowNolock(FALSE) call


bye
	michael
-- 
Michael Stefaniuc               Tel.: +49-711-96437-199
System Administration           Fax.: +49-711-96437-111
Red Hat GmbH                    Email: mstefani at redhat.de
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
-------------- next part --------------
Index: imagelist.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/imagelist.c,v
retrieving revision 1.45
diff -u -r1.45 imagelist.c
--- imagelist.c	2001/12/19 18:47:14	1.45
+++ imagelist.c	2001/12/30 20:17:39
@@ -1163,6 +1165,7 @@
 
 	DeleteDC(hdcBg);
 	DeleteDC(hdcOffScreen);
+	DeleteObject(hbmOffScreen);
 	ReleaseDC(InternalDrag.hwnd, hdcDrag);
     }
 
@@ -1477,9 +1480,6 @@
 BOOL WINAPI
 ImageList_EndDrag (void)
 {
-    /* hide the drag image */
-    ImageList_DragShowNolock(FALSE);
-
     /* cleanup the InternalDrag struct */
     InternalDrag.hwnd = 0;
     ImageList_Destroy (InternalDrag.himl);


More information about the wine-patches mailing list