diff options
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | python/progress.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog index 7c7df72a..1340b152 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,8 @@ python-apt (0.7.94.3) UNRELEASED; urgency=low * python/generic.cc: - Fix a memory leak when using old attribute names. - Map ArchiveURI property to archive_uri + * python/progress.cc: + - Do not pass arguments to InstallProgress.wait_child(). * debian/control: - Change priority to standard, keep -doc and -dev on optional. * utils/migrate-0.8.py: diff --git a/python/progress.cc b/python/progress.cc index 18081690..9002b3eb 100644 --- a/python/progress.cc +++ b/python/progress.cc @@ -501,9 +501,7 @@ pkgPackageManager::OrderResult PyInstallProgress::Run(pkgPackageManager *pm) else method = PyObject_GetAttrString(callbackInst, "wait_child"); //std::cerr << "custom waitChild found" << std::endl; - PyObject *arglist = Py_BuildValue("(i)",child_id); - PyObject *result = PyObject_CallObject(method, arglist); - Py_DECREF(arglist); + PyObject *result = PyObject_CallObject(method, NULL); if (result == NULL) { std::cerr << "waitChild method invalid" << std::endl; PyErr_Print(); |
