From c7a58212be922dd4f33d7a3088e0265a353b15b6 Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Wed, 2 Jan 2008 15:29:25 +0000 Subject: [PATCH] Don't create a helper class if is_singleton is true (because the destructor will likely be private) --- pybindgen/cppclass.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pybindgen/cppclass.py b/pybindgen/cppclass.py index 0f87221..9c5041b 100644 --- a/pybindgen/cppclass.py +++ b/pybindgen/cppclass.py @@ -538,7 +538,8 @@ class CppClass(object): if self.helper_class_disabled: return None if self.helper_class is None: - self.helper_class = CppHelperClass(self) + if not self.is_singleton: + self.helper_class = CppHelperClass(self) return self.helper_class def get_type_narrowing_root(self):