fix for memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

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

Changelog:
    Michael Stefaniuc <mstefani@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@redhat.de
Hauptstaetterstr. 58            http://www.redhat.de/
D-70178 Stuttgart
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);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux