diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:55:55 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-30 15:55:55 +0200 |
| commit | de49263fd994bee687f4c2ceb7cd527f528f991b (patch) | |
| tree | 2e43aec42673b960468d29d9a0c6b7ed9ea5ad1f /python/generic.h | |
| parent | 2d5c6093e0d77576da867c2e5e6f42b6b75de37b (diff) | |
| parent | 2215d046a10508c0d3950db6d924727b2a2db336 (diff) | |
| download | python-apt-de49263fd994bee687f4c2ceb7cd527f528f991b.tar.gz | |
merged from mvo
Diffstat (limited to 'python/generic.h')
| -rw-r--r-- | python/generic.h | 3 |
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); } |
