Changeset 7738
- Timestamp:
- 03/31/11 16:14:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/mex/KMLMeshWrite/KMLMeshWrite.cpp
r7734 r7738 42 42 FILE* fid=NULL; 43 43 44 DataSet* options=NULL;44 Options* options=NULL; 45 45 46 46 /* output: */ … … 107 107 if (verbose) printf(" filnam =\"%s\"\n",filnam); 108 108 109 if (nrhs > NRHS) { 110 if (verbose) printf("Parsing options:\n"); 111 options=OptionsParse(NRHS,nrhs,prhs); 112 } 109 if (verbose) printf("Parsing options:\n"); 110 options=new Options(NRHS,nrhs,prhs); 113 111 114 112 /*some checks*/ … … 163 161 WriteData(ERRORFLAG,ierror); 164 162 165 if (options) { 166 delete options; 167 options=NULL; 168 } 169 170 if (mxIsCell(NOTES) && notes) 171 xfree((void**)¬es); 163 /*Clean-up*/ 164 delete options; 165 if (mxIsCell(NOTES) && notes) xfree((void**)¬es); 172 166 173 167 /*end module: */
Note:
See TracChangeset
for help on using the changeset viewer.