Fixed bizarre seg-fault in Perl5 module (I think).
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@812 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f1b257382
commit
1a1e64d919
1 changed files with 3 additions and 1 deletions
|
|
@ -1820,7 +1820,9 @@ PERL5::cpp_inherit(char **baseclass, int) {
|
|||
base_class = NewString("");
|
||||
while (baseclass[i]) {
|
||||
/* See if this is a class we know about */
|
||||
bc = Char(is_shadow(baseclass[i]));
|
||||
String *b = NewString(baseclass[i]);
|
||||
bc = Char(is_shadow(b));
|
||||
Delete(b);
|
||||
if (bc) {
|
||||
if (have_first) Putc(' ', base_class);
|
||||
Printf(base_class,bc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue