From: George Tasker Date: Tue, 13 Feb 2001 11:38:07 +0000 (+0000) Subject: A temporary hDIB was not being unlocked before exiting the function where the lock... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8d1e5dbf9991b8755fd005d148e343c854236bf0 A temporary hDIB was not being unlocked before exiting the function where the lock was obtained git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/dib.cpp b/src/msw/dib.cpp index 7340494bae..f2e396eb85 100644 --- a/src/msw/dib.cpp +++ b/src/msw/dib.cpp @@ -619,6 +619,9 @@ static BOOL PASCAL MakeBitmapAndPalette(HDC hDC, HANDLE hDIB, result = TRUE; } } + + GlobalUnlock (hDIB); // glt + return(result); }