summaryrefslogtreecommitdiff
path: root/misc/openoffice2/patches/patch-ck
blob: b2aaa85d1158c49563f8200f4a9662bcf39d2bc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ck,v 1.1 2007/04/22 23:15:25 hira Exp $

--- vcl/unx/gtk/app/gtkinst.cxx.orig	2007-04-23 05:50:27.000000000 +0900
+++ vcl/unx/gtk/app/gtkinst.cxx	2007-04-23 05:51:07.000000000 +0900
@@ -329,7 +329,9 @@
     // that locked the mutex with Grab()
     OMutex::acquire();
     mnCount = nGrabs;
-    if( mnCount == 0 )
+    if( mnCount == 0 ) {
+        gdk_threads_leave();
         mnThreadId = 0;
+    }
     OMutex::release();
 }