summaryrefslogtreecommitdiff
path: root/python/generic.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-07-30 15:55:55 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-07-30 15:55:55 +0200
commitde49263fd994bee687f4c2ceb7cd527f528f991b (patch)
tree2e43aec42673b960468d29d9a0c6b7ed9ea5ad1f /python/generic.h
parent2d5c6093e0d77576da867c2e5e6f42b6b75de37b (diff)
parent2215d046a10508c0d3950db6d924727b2a2db336 (diff)
downloadpython-apt-de49263fd994bee687f4c2ceb7cd527f528f991b.tar.gz
merged from mvo
Diffstat (limited to 'python/generic.h')
-rw-r--r--python/generic.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/generic.h b/python/generic.h
index ce79a54c..d2fcf42a 100644
--- a/python/generic.h
+++ b/python/generic.h
@@ -121,8 +121,9 @@ void CppOwnedDealloc(PyObject *iObj)
{
CppOwnedPyObject<T> *Obj = (CppOwnedPyObject<T> *)iObj;
Obj->Object.~T();
- if (Obj->Owner != 0)
+ if (Obj->Owner != 0) {
Py_DECREF(Obj->Owner);
+ }
PyObject_DEL(Obj);
}