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

Back to archive index

null+****@clear***** null+****@clear*****
2011年 3月 13日 (日) 12:39:29 JST


Kouhei Sutou	2011-03-13 03:39:29 +0000 (Sun, 13 Mar 2011)

  New Revision: 36177efb89aaeeaf2dfdd07a805aa76a114b9dc1

  Log:
    clese database.

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

  Modified: test/unit/core/test-inspect.c (+4 -5)
===================================================================
--- test/unit/core/test-inspect.c    2011-03-13 03:34:45 +0000 (920a630)
+++ test/unit/core/test-inspect.c    2011-03-13 03:39:29 +0000 (59604ac)
@@ -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
@@ -178,10 +178,9 @@ cut_teardown(void)
 
   grn_obj_unlink(context, inspected);
 
-  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