diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-12 18:56:23 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-12 18:56:23 +0200 |
| commit | 395b33f9f8e93223f933c625bacbf1e2d23c6673 (patch) | |
| tree | 08d5853f0add0a0ca0c35db547a18709749172fb /debian | |
| parent | aa31a066174571a64e68c35203f6b2404ef2393f (diff) | |
| download | python-apt-395b33f9f8e93223f933c625bacbf1e2d23c6673.tar.gz | |
Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149)
We previously called the destructor of the pointer. This resulted in no
object using pointers being deallocated.
This patch introduces CppDeallocPtr() and CppOwnedDeallocPtr() which do
the same as the other CppDealloc() and CppOwnedDealloc(), but use 'delete'
on the pointer instead of the deconstructor.
Furthermore, this patch also changes AcquireFile to be a CppOwnedPyObject,
owned by the Acquire object. Without this change, deleting the Acquire
object would cause a crash when AcquireFile is deallocated.
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/changelog | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog index 3e85c5be..9f9838c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,11 @@ -python-apt (0.7.92) experimental; urgency=low +python-apt (0.7.92) UNRELEASED; urgency=low * Add apt_pkg.HashString and apt_pkg.IndexRecords (Closes: #456141) * Add apt_pkg.Policy class (Closes: #382725) * Allow types providing __new__() to be subclassed. + * Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149) - -- Julian Andres Klode <jak@debian.org> Tue, 09 Jun 2009 20:39:39 +0200 + -- Julian Andres Klode <jak@debian.org> Fri, 12 Jun 2009 18:42:02 +0200 python-apt (0.7.91) experimental; urgency=low |
