summaryrefslogtreecommitdiff
path: root/python/indexfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/indexfile.cc')
-rw-r--r--python/indexfile.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/indexfile.cc b/python/indexfile.cc
index ba709872..ef88c2f0 100644
--- a/python/indexfile.cc
+++ b/python/indexfile.cc
@@ -114,10 +114,10 @@ PyTypeObject PackageIndexFileType =
0, // tp_getattro
0, // tp_setattro
0, // tp_as_buffer
- Py_TPFLAGS_DEFAULT, // tp_flags
+ Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, // tp_flags
"pkgIndexFile Object", // tp_doc
- 0, // tp_traverse
- 0, // tp_clear
+ CppOwnedTraverse<pkgIndexFile*>, // tp_traverse
+ CppOwnedClear<pkgIndexFile*>, // tp_clear
0, // tp_richcompare
0, // tp_weaklistoffset
0, // tp_iter