[uim-commit] r903 - trunk/uim

ekato at freedesktop.org ekato at freedesktop.org
Wed Jun 22 07:39:53 PDT 2005


Author: ekato
Date: 2005-06-22 07:39:48 -0700 (Wed, 22 Jun 2005)
New Revision: 903

Modified:
   trunk/uim/skk-dic.c
Log:
* uim/skk-dic.c (compose_line_parts) : Plug leak.


Modified: trunk/uim/skk-dic.c
===================================================================
--- trunk/uim/skk-dic.c	2005-06-22 10:36:15 UTC (rev 902)
+++ trunk/uim/skk-dic.c	2005-06-22 14:39:48 UTC (rev 903)
@@ -498,8 +498,10 @@
     tmp = nth_candidate(line, nth);
     if (tmp) {
       if (tmp[0] == '[') {
+	char *str = okuri_in_bracket(&tmp[1]);
 	tmp[0] = ' '; /* create first_space */
-	compose_line_parts(di, sl, okuri_in_bracket(&tmp[1]), &tmp[0]);
+	compose_line_parts(di, sl, str, &tmp[0]);
+	free(str);
       } else if (tmp[0] != ']') {
 	push_back_candidate_to_array(ca, tmp);
       }



More information about the uim-commit mailing list