Fixed memory leak.

Removed redundant ImageList_DragShowNolock(FALSE) call.
This commit is contained in:
Michael Stefaniuc 2001-12-31 22:21:24 +00:00 committed by Alexandre Julliard
parent 09534f32da
commit 00bd7998fb
1 changed files with 1 additions and 3 deletions

View File

@ -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);