• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A multilingual input method framework


Commit MetaInfo

修订版9a7c9789408e288e932d74518fc16e86e7bcc199 (tree)
时间2012-01-11 15:39:26
作者ek.kato <ek.kato@ff9a...>
Commiterek.kato

Log Message

* Merge r7320 from trunk.

更改概述

差异

--- a/helper/dict-canna.c
+++ b/helper/dict-canna.c
@@ -158,6 +158,8 @@ static void parse_canna_priv_dic_buf(char *buf, uim_word **head)
158158 phon = strdup(buf);
159159
160160 for (;;) {
161+ if (!p)
162+ break;
161163 q = strchr(p, ' ');
162164 if (q) {
163165 *q = '\0';
@@ -309,6 +311,8 @@ uim_dict_canna_open(const char *identifier)
309311
310312 if (status == -2) {
311313 if (dict_canna_create_priv_dic() < 0) {
314+ free(dict->identifier);
315+ free(dict->charset);
312316 free(dict);
313317 RkFinalize();
314318 return NULL;
--- a/helper/dict-word-win-gtk.c
+++ b/helper/dict-word-win-gtk.c
@@ -495,7 +495,7 @@ word_window_add(WordWindow *window)
495495 g_free(phonetic);
496496 g_free(literal);
497497 g_free(cclass_desc);
498- g_free(word);
498+ free(word);
499499 #endif
500500 } else {
501501 ret = 0;