[Kazehakase-cvs] CVS update: kazehakase/module/search

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Sat Jan 27 18:36:34 JST 2007


Index: kazehakase/module/search/kz-anthy-trainer.c
diff -u kazehakase/module/search/kz-anthy-trainer.c:1.6 kazehakase/module/search/kz-anthy-trainer.c:1.7
--- kazehakase/module/search/kz-anthy-trainer.c:1.6	Sun Dec 31 23:06:50 2006
+++ kazehakase/module/search/kz-anthy-trainer.c	Sat Jan 27 18:36:34 2007
@@ -184,7 +184,6 @@
 	gchar *text;
 	text = html_to_text(contents);
 	node = mecab_sparse_tonode(priv->mecab, text);
-	g_free(text);
 	if (!node) return FALSE;
 
 	for (;  node; node = node->next)
@@ -200,6 +199,7 @@
 		g_free(surface);
 	}
 
+	g_free(text);
 	return FALSE;
 }
 
Index: kazehakase/module/search/kz-search-rast.c
diff -u kazehakase/module/search/kz-search-rast.c:1.3 kazehakase/module/search/kz-search-rast.c:1.4
--- kazehakase/module/search/kz-search-rast.c:1.3	Mon Jan  1 22:11:41 2007
+++ kazehakase/module/search/kz-search-rast.c	Sat Jan 27 18:36:34 2007
@@ -26,8 +26,10 @@
 #include "kazehakase.h"
 #include "utils/utils.h"
 #include "glib-utils.h"
+#include "kz-search-common.h"
 #include "kz-search-rast.h"
 #include "egg-pixbuf-thumbnail.h"
+#include <rast/rast.h>
 
 
 #define HISTORY_INDEX "history_index.rast"
@@ -155,6 +157,11 @@
 static void
 kz_search_rast_init (KzSearchRast *search)
 {
+	rast_error_t *error;
+
+	apr_initialize();
+
+	error = rast_initialize();
 }
 
 static GObject *
@@ -180,6 +187,9 @@
 static void
 dispose (GObject *object)
 {
+	rast_finalize();
+	apr_terminate();
+
 	if (G_OBJECT_CLASS(parent_class)->dispose)
 		G_OBJECT_CLASS(parent_class)->dispose(object);
 }


More information about the Kazehakase-cvs mailing list
Back to archive index