diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-06-26 00:06:01 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-06-26 00:06:01 +0100 |
commit | 7ec7cc63daa079e581b5cae0a0e7cee4384b928e (patch) | |
tree | 27bd92ae210562642b0c57ccaa9bb721d4df9470 | |
parent | 6234ebd48600cb418b1a858fd586656321eceda8 (diff) | |
download | swig-7ec7cc63daa079e581b5cae0a0e7cee4384b928e.tar.gz |
memory leak improvements - delete at end of scope
-rw-r--r-- | Source/Modules/scilab.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Modules/scilab.cxx b/Source/Modules/scilab.cxx index 7febf1011..137adc234 100644 --- a/Source/Modules/scilab.cxx +++ b/Source/Modules/scilab.cxx @@ -604,7 +604,6 @@ public: Append(getFunctionWrapper->code, "return SWIG_OK;\n"); Append(getFunctionWrapper->code, "}\n"); Wrapper_print(getFunctionWrapper, wrappersSection); - DelWrapper(getFunctionWrapper); /* Add function to builder table */ addFunctionToScilab(scilabGetFunctionName, getFunctionName); @@ -632,11 +631,13 @@ public: Append(setFunctionWrapper->code, "return SWIG_OK;\n"); Append(setFunctionWrapper->code, "}\n"); Wrapper_print(setFunctionWrapper, wrappersSection); - DelWrapper(setFunctionWrapper); /* Add function to builder table */ addFunctionToScilab(scilabSetFunctionName, setFunctionName); + + DelWrapper(setFunctionWrapper); } + DelWrapper(getFunctionWrapper); return SWIG_OK; } |