提交 10467f1c 编写于 作者: D Daniel P. Berrange

Fix crash after calling virConnectClose

上级 61243e0f
Wed Apr 1 11:38:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* python/generator.py: Clear internal reference to underlying
virConnectPtr object after calling virConnectClose()
Wed Apr 1 11:37:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
* python/generator.py: Fix generation of networkCreateXML
......
......@@ -1072,6 +1072,9 @@ def buildWrappers():
n = n + 1
classes.write(")\n");
if name == "virConnectClose":
classes.write(" self._o = None\n")
# For functions returning object types:
if ret[0] != "void":
if classes_type.has_key(ret[0]):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册