[uim-commit] r229 - trunk/uim

tkng@freedesktop.org tkng@freedesktop.org
Mon Jan 10 13:49:36 PST 2005


Author: tkng
Date: 2005-01-10 13:49:33 -0800 (Mon, 10 Jan 2005)
New Revision: 229

Modified:
   trunk/uim/uim.c
Log:
* uim/uim.c: Oops, in my previous ocmmit, I've forgotten to revert CONTEXT_ARRAY_SIZE.
  I changed the value of this variable to 5 for debugging perpose, but that's too
  short for practical use.


Modified: trunk/uim/uim.c
===================================================================
--- trunk/uim/uim.c	2005-01-10 21:44:06 UTC (rev 228)
+++ trunk/uim/uim.c	2005-01-10 21:49:33 UTC (rev 229)
@@ -55,7 +55,7 @@
 
 char *uim_last_client_encoding;
 
-#define CONTEXT_ARRAY_SIZE 5
+#define CONTEXT_ARRAY_SIZE 512
 static uim_context context_array[CONTEXT_ARRAY_SIZE];
 struct uim_im *uim_im_array;
 int uim_nr_im;
@@ -264,6 +264,7 @@
   uim_release_preedit_segments(uc);
   for (i = 0; i < uc->nr_modes; i++) {
     free(uc->modes[i]);
+    uc->modes[i] = NULL;
   }
   free(uc->propstr);
   free(uc->proplabelstr);



More information about the Uim-commit mailing list