diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 686f0dc7c..bba23163b 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1455,7 +1455,7 @@ public: Replaceall(tm,"$target", "resultobj"); Replaceall(tm,"$result", "resultobj"); if (GetFlag(n,"feature:new")) { - Replaceall(tm,"$owner","1"); + Replaceall(tm,"$owner","SWIG_POINTER_OWN"); } else { Replaceall(tm,"$owner","0"); } diff --git a/SWIG/Source/Modules/ruby.cxx b/SWIG/Source/Modules/ruby.cxx index 5f9ed7fb7..ac3014089 100644 --- a/SWIG/Source/Modules/ruby.cxx +++ b/SWIG/Source/Modules/ruby.cxx @@ -1260,7 +1260,7 @@ public: Replaceall(tm,"$target","vresult"); if (GetFlag(n, "feature:new")) - Replaceall(tm,"$owner", "1"); + Replaceall(tm,"$owner", "SWIG_POINTER_OWN"); else Replaceall(tm,"$owner", "0"); diff --git a/SWIG/Source/Modules/tcl8.cxx b/SWIG/Source/Modules/tcl8.cxx index 3cf983817..2b78b7b4c 100644 --- a/SWIG/Source/Modules/tcl8.cxx +++ b/SWIG/Source/Modules/tcl8.cxx @@ -455,7 +455,7 @@ public: Replaceall(tm,"$target", "resultobj"); Replaceall(tm,"$result", "resultobj"); if(GetFlag(n,"feature:new")) { - Replaceall(tm,"$owner","1"); + Replaceall(tm,"$owner","SWIG_POINTER_OWN"); } else { Replaceall(tm,"$owner","0"); }