summaryrefslogtreecommitdiffstats
path: root/libvir.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2009-05-28 11:02:11 +0000
committerDaniel P. Berrange <berrange@redhat.com>2009-05-28 11:02:11 +0000
commit879d7b5d2442b52719d629608539c6f202673954 (patch)
tree015081721559f0b78e5fbb48cdd624232f25bab1 /libvir.c
parent5d24a7a2136e33f2f5f3e9c8c2ee5953537b1d77 (diff)
downloadlibvirt-python-v6-879d7b5d2442b52719d629608539c6f202673954.tar.gz
libvirt-python-v6-879d7b5d2442b52719d629608539c6f202673954.tar.xz
libvirt-python-v6-879d7b5d2442b52719d629608539c6f202673954.zip
Fix python domain events example & bindingv0.6.5v0.6.4LIBVIRT_0_6_5LIBVIRT_0_6_4
Diffstat (limited to 'libvir.c')
-rw-r--r--libvir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvir.c b/libvir.c
index cdc5b51..e210597 100644
--- a/libvir.c
+++ b/libvir.c
@@ -1653,6 +1653,7 @@ libvirt_virConnectDomainEventCallback(virConnectPtr conn ATTRIBUTE_UNUSED,
LIBVIRT_ENSURE_THREAD_STATE;
/* Create a python instance of this virDomainPtr */
+ virDomainRef(dom);
pyobj_dom = libvirt_virDomainPtrWrap(dom);
pyobj_dom_args = PyTuple_New(2);
if(PyTuple_SetItem(pyobj_dom_args, 0, pyobj_conn_inst)!=0) {