summaryrefslogtreecommitdiff
path: root/python/acquire.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/acquire.cc')
-rw-r--r--python/acquire.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/acquire.cc b/python/acquire.cc
index 04e00b02..5e22280e 100644
--- a/python/acquire.cc
+++ b/python/acquire.cc
@@ -324,8 +324,8 @@ static PyObject *PkgAcquireNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
/**
* Create a new apt_pkg.Acquire Python object from the pkgAcquire object.
*/
-PyObject *PyAcquire_FromCpp(pkgAcquire *fetcher, bool Delete) {
- CppPyObject<pkgAcquire*> *obj = CppPyObject_NEW<pkgAcquire*>(NULL, &PyAcquire_Type, fetcher);
+PyObject *PyAcquire_FromCpp(pkgAcquire *fetcher, bool Delete, PyObject *owner) {
+ CppPyObject<pkgAcquire*> *obj = CppPyObject_NEW<pkgAcquire*>(owner, &PyAcquire_Type, fetcher);
obj->NoDelete = (!Delete);
return obj;
}