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

Back to archive index

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


Kouhei Sutou	2011-03-13 03:59:46 +0000 (Sun, 13 Mar 2011)

  New Revision: ad96d0f5d861c6f92272b75a0a1c76955777cf78

  Log:
    clese database.

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

  Modified: test/unit/core/test-plugin.c (+3 -4)
===================================================================
--- test/unit/core/test-plugin.c    2011-03-13 03:57:08 +0000 (10cd096)
+++ test/unit/core/test-plugin.c    2011-03-13 03:59:46 +0000 (ebc490d)
@@ -97,10 +97,9 @@ cut_teardown(void)
 {
   teardown_plugins_dir();
 
-  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