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

Back to archive index

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


Kouhei Sutou	2011-03-13 12:36:20 +0000 (Sun, 13 Mar 2011)

  New Revision: dc0763e12b3ce62cc49eb75b27ea5daa148b8256

  Log:
    close database.

  Modified files:
    test/unit/core/test-table-patricia-trie-cursor.c

  Modified: test/unit/core/test-table-patricia-trie-cursor.c (+4 -5)
===================================================================
--- test/unit/core/test-table-patricia-trie-cursor.c    2011-03-13 12:33:31 +0000 (bb5eef8)
+++ test/unit/core/test-table-patricia-trie-cursor.c    2011-03-13 12:36:20 +0000 (c5a4a72)
@@ -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
@@ -110,10 +110,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);
 }
 
 static void




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