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

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 13日 (日) 20:02:54 JST


Kouhei Sutou	2011-03-13 11:02:54 +0000 (Sun, 13 Mar 2011)

  New Revision: a5730f9c45b99cd82ba9312991a34d92b1103946

  Log:
    close database.

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

  Modified: test/unit/core/test-table-sort-geo.c (+4 -5)
===================================================================
--- test/unit/core/test-table-sort-geo.c    2011-03-13 10:58:40 +0000 (4a86dfe)
+++ test/unit/core/test-table-sort-geo.c    2011-03-13 11:02:54 +0000 (4981739)
@@ -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
@@ -112,10 +112,9 @@ cut_teardown(void)
     grn_obj_unlink(context, table);
   }
 
-  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