[Tomoe-cvs 1706] CVS update: tomoe/module/dict

Back to archive index

Kouhei Sutou kous****@users*****
2006年 12月 6日 (水) 15:28:37 JST


Index: tomoe/module/dict/tomoe-dict-ptr-array.c
diff -u tomoe/module/dict/tomoe-dict-ptr-array.c:1.2 tomoe/module/dict/tomoe-dict-ptr-array.c:1.3
--- tomoe/module/dict/tomoe-dict-ptr-array.c:1.2	Wed Dec  6 12:08:47 2006
+++ tomoe/module/dict/tomoe-dict-ptr-array.c	Wed Dec  6 15:28:36 2006
@@ -17,7 +17,7 @@
  *  Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  *  Boston, MA  02111-1307  USA
  *
- *  $Id: tomoe-dict-ptr-array.c,v 1.2 2006/12/06 03:08:47 kous Exp $
+ *  $Id: tomoe-dict-ptr-array.c,v 1.3 2006/12/06 06:28:36 kous Exp $
  */
 
 #include <string.h>
@@ -93,7 +93,7 @@
     for (i = 0; i < len; i++) {
         TomoeChar *chr = g_ptr_array_index (chars, i);
         if (g_str_equal (tomoe_char_get_utf8(chr), utf8)) {
-            return chr;
+            return g_object_ref (chr);
         }
     }
 


tomoe-cvs メーリングリストの案内
Back to archive index