summaryrefslogtreecommitdiff
path: root/python/depcache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/depcache.cc')
-rw-r--r--python/depcache.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/depcache.cc b/python/depcache.cc
index 9bbda527..288eb0b0 100644
--- a/python/depcache.cc
+++ b/python/depcache.cc
@@ -660,7 +660,8 @@ PyTypeObject PkgDepCacheType =
sizeof(CppOwnedPyObject<pkgDepCache *>), // tp_basicsize
0, // tp_itemsize
// Methods
- CppOwnedDeallocPtr<pkgDepCache *>, // tp_dealloc
+ // Not ..Ptr, because the pkgDepCache pointer is managed by the CacheFile.
+ CppOwnedDealloc<pkgDepCache *>, // tp_dealloc
0, // tp_print
0, // tp_getattr
0, // tp_setattr