diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-12 22:04:24 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-05-12 22:04:24 +0400 |
commit | 57c626d11c0b2d0ed7cce7e60c863477f87d8ebd (patch) | |
tree | cb2c47bfc5235cf5db9de1339c71456509ce65af /intern | |
parent | 1d6278f80a62191a4b2259f4da5d82945a396c6f (diff) |
Forgot to close clipboard when lock fails.
Thanks to jesterKing!
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemWin32.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |