Hiroyuki Ikezoe
ikezo****@users*****
2006年 11月 28日 (火) 09:47:29 JST
Index: tomoe/lib/tomoe-char.c diff -u tomoe/lib/tomoe-char.c:1.53 tomoe/lib/tomoe-char.c:1.54 --- tomoe/lib/tomoe-char.c:1.53 Mon Nov 27 18:01:40 2006 +++ tomoe/lib/tomoe-char.c Tue Nov 28 09:47:29 2006 @@ -18,7 +18,7 @@ * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA * - * $Id: tomoe-char.c,v 1.53 2006/11/27 09:01:40 kous Exp $ + * $Id: tomoe-char.c,v 1.54 2006/11/28 00:47:29 ikezoe Exp $ */ #include <stdlib.h> @@ -65,7 +65,7 @@ gobject_class = G_OBJECT_CLASS (klass); - gobject_class->dispose = tomoe_char_dispose; + gobject_class->dispose = tomoe_char_dispose; gobject_class->set_property = tomoe_char_set_property; gobject_class->get_property = tomoe_char_get_property; Index: tomoe/lib/tomoe-dict.c diff -u tomoe/lib/tomoe-dict.c:1.118 tomoe/lib/tomoe-dict.c:1.119 --- tomoe/lib/tomoe-dict.c:1.118 Tue Nov 28 09:32:15 2006 +++ tomoe/lib/tomoe-dict.c Tue Nov 28 09:47:29 2006 @@ -21,7 +21,7 @@ * Free Software Foundation, Inc., 59 Temple Place, Suite 330, * Boston, MA 02111-1307 USA * - * $Id: tomoe-dict.c,v 1.118 2006/11/28 00:32:15 ikezoe Exp $ + * $Id: tomoe-dict.c,v 1.119 2006/11/28 00:47:29 ikezoe Exp $ */ #include <stdio.h> @@ -183,8 +183,10 @@ tomoe_dict_save_xml (dict); } - g_free(priv->name); - g_free(priv->filename); + if (priv->name) + g_free(priv->name); + if (priv->filename) + g_free(priv->filename); if (priv->chars) TOMOE_PTR_ARRAY_FREE_ALL(priv->chars, g_object_unref);