From 57c626d11c0b2d0ed7cce7e60c863477f87d8ebd Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 12 May 2011 18:04:24 +0000 Subject: [PATCH] Forgot to close clipboard when lock fails. Thanks to jesterKing! --- intern/ghost/intern/GHOST_SystemWin32.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/intern/ghost/intern/GHOST_SystemWin32.cpp b/intern/ghost/intern/GHOST_SystemWin32.cpp index 92066d5f794..143f7e97f2d 100644 --- a/intern/ghost/intern/GHOST_SystemWin32.cpp +++ b/intern/ghost/intern/GHOST_SystemWin32.cpp @@ -1186,6 +1186,7 @@ GHOST_TUns8* GHOST_SystemWin32::getClipboard(bool selection) const } buffer = (char*)GlobalLock( hData ); if (!buffer) { + CloseClipboard(); return NULL; }