[GRASS-SVN] r50487 - grass/branches/develbranch_6/vector/v.to.rast
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jan 27 04:33:13 EST 2012
Author: hamish
Date: 2012-01-27 01:33:13 -0800 (Fri, 27 Jan 2012)
New Revision: 50487
Modified:
grass/branches/develbranch_6/vector/v.to.rast/support.c
Log:
remember to close the DB driver when we leave (#1276)
Modified: grass/branches/develbranch_6/vector/v.to.rast/support.c
===================================================================
--- grass/branches/develbranch_6/vector/v.to.rast/support.c 2012-01-27 08:44:16 UTC (rev 50486)
+++ grass/branches/develbranch_6/vector/v.to.rast/support.c 2012-01-27 09:33:13 UTC (rev 50487)
@@ -133,7 +133,7 @@
if (!attr_column)
attr_column = Fi->key;
-
+
/* get number of records in attr_column */
if ((nrec =
db_select_CatValArray(Driver, Fi->table, Fi->key, attr_column, NULL,
@@ -305,6 +305,7 @@
/* get column type */
if (!label_column) {
G_verbose_message(_("Label column was not specified, no labels will be written"));
+ db_close_database_shutdown_driver(Driver);
break;
}
else {
More information about the grass-commit
mailing list