diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-20 09:51:57 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-07-20 09:51:57 +0200 |
| commit | 53f514317550cc09ad3c3fb9503be51d88e3d31d (patch) | |
| tree | 35710d5ddb8d0fe7960e6b6946c668de2dadc8d5 /python/generic.h | |
| parent | d445714639596ac57d4dfeb44eb6ca69fbea8190 (diff) | |
| parent | d28170024ef4d2f01fd9096a3ec785cf424c0846 (diff) | |
| download | python-apt-53f514317550cc09ad3c3fb9503be51d88e3d31d.tar.gz | |
merged from lp:~speijnik/python-apt/debian-gsoc09
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); } |
