Skip to content

Commit

Permalink
[MATLAB] destructor updates swigCPtr to avoid multiple delete calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Apr 10, 2014
1 parent 941fe2e commit d04fd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Modules/matlab.cxx
Expand Up @@ -867,7 +867,7 @@ int MATLAB::destructorHandler(Node *n) {
Printf(f_wrap_m,"function delete(self)\n");
String *symname = Getattr(n, "sym:name");
String *fullname = Swig_name_destroy(NSPACE_TODO, symname);
Printf(f_wrap_m,"%s('%s',self.swigCPtr)\n",mex_fcn,fullname);
Printf(f_wrap_m,"self.swigCPtr = %s('%s',self.swigCPtr)\n",mex_fcn,fullname);
Printf(f_wrap_m,"end\n");

// Add to function switch
Expand Down

0 comments on commit d04fd77

Please sign in to comment.