Fix for Perl incorrectly taking memory ownership for return types that are typedefs to a struct/class pointer
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
bd3acc66f7
commit
d9826b509e
1 changed files with 1 additions and 2 deletions
|
|
@ -654,8 +654,7 @@ public:
|
||||||
} else {
|
} else {
|
||||||
Replaceall(tm, "$shadow", "0");
|
Replaceall(tm, "$shadow", "0");
|
||||||
}
|
}
|
||||||
if ((!SwigType_ispointer(t) && !SwigType_isreference(t))
|
if (Getattr(n,"feature:new")) {
|
||||||
|| Getattr(n,"feature:new")) {
|
|
||||||
Replaceall(tm,"$owner","SWIG_OWNER");
|
Replaceall(tm,"$owner","SWIG_OWNER");
|
||||||
} else {
|
} else {
|
||||||
Replaceall(tm,"$owner","0");
|
Replaceall(tm,"$owner","0");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue