[uim-commit] r1375 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Wed Aug 31 21:59:12 PDT 2005


Author: ekato
Date: 2005-08-31 21:59:09 -0700 (Wed, 31 Aug 2005)
New Revision: 1375

Modified:
   trunk/uim/uim.c
Log:
* uim/uim.c (uim_find_context) : Fix change in r1360.  Unlock after
  return doesn't make sense.


Modified: trunk/uim/uim.c
===================================================================
--- trunk/uim/uim.c	2005-09-01 00:55:07 UTC (rev 1374)
+++ trunk/uim/uim.c	2005-09-01 04:59:09 UTC (rev 1375)
@@ -278,9 +278,11 @@
 uim_context
 uim_find_context(int id)
 {
+  uim_context uc;
   UIM_LOCK_MUTEX(context_array_mtx);
-  return context_array[id];
+  uc = context_array[id];
   UIM_UNLOCK_MUTEX(context_array_mtx);
+  return uc;
 }
 
 int



More information about the uim-commit mailing list