[Kazehakase-cvs] kazehakase-svn [2988] * src/utils/utils.c: used KZ_GET_SEARCH instead of kz_search_new().

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Fri Mar 23 21:54:06 JST 2007


Revision: 2988
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=2988
Author:   kous
Date:     2007-03-23 21:54:05 +0900 (Fri, 23 Mar 2007)

Log Message:
-----------
* src/utils/utils.c: used KZ_GET_SEARCH instead of kz_search_new().

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/utils/utils.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-03-23 08:05:35 UTC (rev 2987)
+++ kazehakase/trunk/ChangeLog	2007-03-23 12:54:05 UTC (rev 2988)
@@ -1,5 +1,9 @@
 2007-03-23  Kouhei Sutou  <kou****@cozmi*****>
 
+	* src/utils/utils.c: used KZ_GET_SEARCH instead of kz_search_new().
+
+2007-03-23  Kouhei Sutou  <kou****@cozmi*****>
+
 	* ext/ruby/: renamed _Init_XXX to _XXX_init. Thanks to Kazuhiro
 	NISHIYAMA.
 

Modified: kazehakase/trunk/src/utils/utils.c
===================================================================
--- kazehakase/trunk/src/utils/utils.c	2007-03-23 08:05:35 UTC (rev 2987)
+++ kazehakase/trunk/src/utils/utils.c	2007-03-23 12:54:05 UTC (rev 2988)
@@ -593,7 +593,7 @@
 	GTimeVal now;
 	time_t t;
 	KzSearch *search;
-	search = kz_search_new("hyperestraier");
+	search = KZ_GET_SEARCH;
 
 	g_get_current_time(&now);
 	t = now.tv_sec;
@@ -649,8 +649,6 @@
 		fclose(fp);
 	}
 
-	if (search)
-		g_object_unref(search);
 	g_unlink(timestamp_path);
 	g_rename(tmp_file, timestamp_path);
 }




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