浏览代码

Close db-connection when the vector map is closed

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54381 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 年之前
父节点
当前提交
b24f6f3500
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/python/pygrass/vector/abstract.py

+ 1 - 0
lib/python/pygrass/vector/abstract.py

@@ -275,6 +275,7 @@ class Info(object):
             return self.dblinks.by_number(1).table()
 
     def close(self):
+        self.table.conn.close()
         if self.is_open():
             if libvect.Vect_close(self.c_mapinfo) != 0:
                 str_err = 'Error when trying to close the map with Vect_close'