summaryrefslogtreecommitdiff
path: root/python/indexfile.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-12 15:46:07 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-12 15:46:07 +0200
commit199827e05750509afb8ea98d5400552201f5ef16 (patch)
treef716483231a617cb0e0423f120836a6de3e65a79 /python/indexfile.cc
parent704a039393c6b9bf990f1c99befd2555ad41f16f (diff)
downloadpython-apt-199827e05750509afb8ea98d5400552201f5ef16.tar.gz
python/indexfile.cc: Deallocate the pointer correctly.
Diffstat (limited to 'python/indexfile.cc')
-rw-r--r--python/indexfile.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/indexfile.cc b/python/indexfile.cc
index 5b526b87..f2180cd7 100644
--- a/python/indexfile.cc
+++ b/python/indexfile.cc
@@ -96,7 +96,7 @@ PyTypeObject PackageIndexFileType =
0, // tp_itemsize
// Methods
// Not ..Ptr, because the pointer is managed somewhere else.
- CppOwnedDealloc<pkgIndexFile*>, // tp_dealloc
+ CppOwnedDeallocPtr<pkgIndexFile*>, // tp_dealloc
0, // tp_print
0, // tp_getattr
0, // tp_setattr
@@ -112,7 +112,7 @@ PyTypeObject PackageIndexFileType =
0, // tp_setattro
0, // tp_as_buffer
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, // tp_flags
- "pkgIndexFile Object", // tp_doc
+ "IndexFile Object", // tp_doc
CppOwnedTraverse<pkgIndexFile*>, // tp_traverse
CppOwnedClear<pkgIndexFile*>, // tp_clear
0, // tp_richcompare