浏览代码

close vector

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46308 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 年之前
父节点
当前提交
6e2a866c9c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      vector/v.db.connect/main.c

+ 1 - 0
vector/v.db.connect/main.c

@@ -164,6 +164,7 @@ int main(int argc, char **argv)
 	    /* it is ok if a vector map is not connected o an attribute table */
 	    /* it is ok if a vector map is not connected o an attribute table */
 	    G_message(_("Map <%s> is not connected to a database"),
 	    G_message(_("Map <%s> is not connected to a database"),
 			  input);
 			  input);
+	    Vect_close(&Map);
 	    exit(EXIT_SUCCESS);
 	    exit(EXIT_SUCCESS);
 	}
 	}
 	else {			/* num_dblinks > 0 */
 	else {			/* num_dblinks > 0 */