From ff2943a35da4bee9893b6f51461573302a97ec28 Mon Sep 17 00:00:00 2001 From: Dave Beazley Date: Wed, 20 Sep 2000 20:20:18 +0000 Subject: [PATCH] Fixed broken inheritance in shadow classes. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@868 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules1.1/python.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/Modules1.1/python.cxx b/Source/Modules1.1/python.cxx index 59a4ca557..140668e93 100644 --- a/Source/Modules1.1/python.cxx +++ b/Source/Modules1.1/python.cxx @@ -1453,12 +1453,15 @@ PYTHON::cpp_inherit(char **baseclass,int) { /* Now tell the Python module that we're inheriting from a base class */ while (baseclass[i]) { - bc = GetChar(hash,baseclass[i]); + String *bs = NewString(baseclass[i]); + SwigType_add_pointer(bs); + bc = GetChar(hash,bs); if (bc) { if (first_base) Putc(',',base_class); Printv(base_class,bc,0); first_base = 1; } + Delete(bs); i++; } if (!first_base) {