diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-18 01:01:44 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-23 20:20:41 -0700 |
commit | b4c4c65a35640e7274ccd4228f62110147878b72 (patch) | |
tree | ec1341b458f4b51f1ccc24d7b60c8e7d0fdf149f | |
parent | d1ef0d4964e43a4ab777750ad214d1092fd1ffda (diff) |
XQuartz: Fix a deadlock in pre-dispatch code
The fact that this has been in place so long makes me really wonder if
anybody cares about this running in Tiger or Leopard.
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | hw/xquartz/xpr/xprFrame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/xpr/xprFrame.c b/hw/xquartz/xpr/xprFrame.c index 4c7aac42b..01f1def20 100644 --- a/hw/xquartz/xpr/xprFrame.c +++ b/hw/xquartz/xpr/xprFrame.c @@ -212,7 +212,7 @@ xprCreateFrame(RootlessWindowPtr pFrame, ScreenPtr pScreen, #else pthread_rwlock_wrlock(&window_hash_rwlock); x_hash_table_insert(window_hash, pFrame->wid, pFrame); - pthread_rwlock_wrlock(&window_hash_rwlock); + pthread_rwlock_unlock(&window_hash_rwlock); #endif xprSetNativeProperty(pFrame); |