Fixed memory leak.
Removed redundant ImageList_DragShowNolock(FALSE) call.
diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c
index a3ee6d3..2b7f6cf 100644
--- a/dlls/comctl32/imagelist.c
+++ b/dlls/comctl32/imagelist.c
@@ -1163,6 +1163,7 @@
DeleteDC(hdcBg);
DeleteDC(hdcOffScreen);
+ DeleteObject(hbmOffScreen);
ReleaseDC(InternalDrag.hwnd, hdcDrag);
}
@@ -1477,9 +1478,6 @@
BOOL WINAPI
ImageList_EndDrag (void)
{
- /* hide the drag image */
- ImageList_DragShowNolock(FALSE);
-
/* cleanup the InternalDrag struct */
InternalDrag.hwnd = 0;
ImageList_Destroy (InternalDrag.himl);