null+****@clear*****
null+****@clear*****
2011年 3月 13日 (日) 19:16:29 JST
Kouhei Sutou 2011-03-13 10:16:29 +0000 (Sun, 13 Mar 2011)
New Revision: 8ce92487c6c3eecbdbd7fcabfe7c059753baea43
Log:
close database.
Modified files:
test/unit/core/test-command-column-list.c
Modified: test/unit/core/test-command-column-list.c (+4 -5)
===================================================================
--- test/unit/core/test-command-column-list.c 2011-03-13 10:00:56 +0000 (8cbbfad)
+++ test/unit/core/test-command-column-list.c 2011-03-13 10:16:29 +0000 (10f9665)
@@ -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
@@ -71,10 +71,9 @@ cut_setup(void)
void
cut_teardown(void)
{
- if (context) {
- grn_ctx_fin(context);
- g_free(context);
- }
+ grn_obj_close(context, database);
+ grn_ctx_fin(context);
+ g_free(context);
remove_tmp_directory();
}