Commit 3ed2f0ca10a66ddf50a4e337d22e4ec2f03deeab

Philipp Wiesemann 2017-05-07T21:02:16

haiku: Fixed unlocking clipboard twice.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/haiku/SDL_bclipboard.cc b/src/video/haiku/SDL_bclipboard.cc
index 50034b8..a49908f 100644
--- a/src/video/haiku/SDL_bclipboard.cc
+++ b/src/video/haiku/SDL_bclipboard.cc
@@ -61,8 +61,6 @@ char *BE_GetClipboardText(_THIS) {
 			/* Presumably the string of characters is ascii-format */
 			clip->FindData("text/plain", B_MIME_TYPE, (const void**)&text,
 				&length);
-		} else {
-			be_clipboard->Unlock();
 		}
 		be_clipboard->Unlock();
 	}