null+****@clear*****
null+****@clear*****
2011年 3月 13日 (日) 12:53:51 JST
Kouhei Sutou 2011-03-13 03:53:51 +0000 (Sun, 13 Mar 2011) New Revision: 4cf9bc03f79c7bec195e51f6ce0941299152e2cc Log: close database. Modified files: test/unit/core/test-table.c Modified: test/unit/core/test-table.c (+4 -5) =================================================================== --- test/unit/core/test-table.c 2011-03-13 03:51:32 +0000 (4f6ac4d) +++ test/unit/core/test-table.c 2011-03-13 03:53:51 +0000 (f4c407c) @@ -1,6 +1,6 @@ /* -*- c-basic-offset: 2; coding: utf-8 -*- */ /* - Copyright (C) 2009-2010 Kouhei Sutou <kou****@clear*****> + Copyright (C) 2009-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 @@ -83,10 +83,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); teardown_grn_logger(logger); cut_remove_path(tmp_directory, NULL); }