null+****@clear*****
null+****@clear*****
2011年 3月 13日 (日) 18:02:10 JST
Kouhei Sutou 2011-03-13 09:02:10 +0000 (Sun, 13 Mar 2011)
New Revision: 02bb920d03c6e8fedc94830ddad1516b02f5bf03
Log:
close database.
Modified files:
test/unit/core/test-table-cursor.c
Modified: test/unit/core/test-table-cursor.c (+4 -5)
===================================================================
--- test/unit/core/test-table-cursor.c 2011-03-13 08:52:50 +0000 (4080cfd)
+++ test/unit/core/test-table-cursor.c 2011-03-13 09:02:10 +0000 (07ac065)
@@ -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
@@ -46,10 +46,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);
}