From 00bd7998fb526be0924f57ca12727e1f17d7d116 Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 31 Dec 2001 22:21:24 +0000 Subject: [PATCH] Fixed memory leak. Removed redundant ImageList_DragShowNolock(FALSE) call. --- dlls/comctl32/imagelist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/comctl32/imagelist.c b/dlls/comctl32/imagelist.c index a3ee6d3c428..2b7f6cf33a5 100644 --- a/dlls/comctl32/imagelist.c +++ b/dlls/comctl32/imagelist.c @@ -1163,6 +1163,7 @@ ImageList_DragMove (INT x, INT y) DeleteDC(hdcBg); DeleteDC(hdcOffScreen); + DeleteObject(hbmOffScreen); ReleaseDC(InternalDrag.hwnd, hdcDrag); } @@ -1477,9 +1478,6 @@ ImageList_Duplicate (HIMAGELIST himlSrc) BOOL WINAPI ImageList_EndDrag (void) { - /* hide the drag image */ - ImageList_DragShowNolock(FALSE); - /* cleanup the InternalDrag struct */ InternalDrag.hwnd = 0; ImageList_Destroy (InternalDrag.himl);