[Groonga-commit] groonga/groonga [master] close database.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 13日 (日) 19:32:34 JST


Kouhei Sutou	2011-03-13 10:32:34 +0000 (Sun, 13 Mar 2011)

  New Revision: d48f3743772ab50eba50813f6f363a0ba3c6c3d4

  Log:
    close database.

  Modified files:
    test/unit/core/test-geo.c

  Modified: test/unit/core/test-geo.c (+4 -5)
===================================================================
--- test/unit/core/test-geo.c    2011-03-13 10:27:51 +0000 (504e1d1)
+++ test/unit/core/test-geo.c    2011-03-13 10:32:34 +0000 (fba12c8)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2; coding: utf-8 -*- */
 /*
-  Copyright (C) 2010  Kouhei Sutou <kou****@clear*****>
+  Copyright (C) 2010-2011  Kouhei Sutou <kou****@clear*****>
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -117,10 +117,9 @@ cut_teardown(void)
 {
   teardown_values();
 
-  if (context) {
-    grn_ctx_fin(context);
-    g_free(context);
-  }
+  grn_obj_close(context, database);
+  grn_ctx_fin(context);
+  g_free(context);
 
   remove_tmp_directory();
 }




Groonga-commit メーリングリストの案内
Back to archive index