diff --git a/Source/Modules/fortran.cxx b/Source/Modules/fortran.cxx index 6308a8706e2..c858fd3fa5c 100644 --- a/Source/Modules/fortran.cxx +++ b/Source/Modules/fortran.cxx @@ -3562,9 +3562,9 @@ int FORTRAN::classDirectorMethod(Node *n, Node *classn, String *super) { // Create local variables that become arguments to fortran { - String *cdecl = SwigType_lstr(ctype, imarg); - Wrapper_add_localv(cppfunc, imarg, cdecl, NULL); - Delete(cdecl); + String *cdecl2 = SwigType_lstr(ctype, imarg); + Wrapper_add_localv(cppfunc, imarg, cdecl2, NULL); + Delete(cdecl2); } // Add C++ -> C conversion typemaps for input args