Changeset 12915 for issm/trunk-jpl/src/c/classes/objects/KML/KML_Style.cpp
- Timestamp:
- 08/06/12 15:34:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/classes/objects/KML/KML_Style.cpp
r12835 r12915 38 38 if (list) { 39 39 // delete list; 40 if (list ) xfree((void**)&list);41 40 list =NULL; 42 41 } 43 42 if (balloon) { 44 43 // delete balloon; 45 if (balloon ) xfree((void**)&balloon);46 44 balloon =NULL; 47 45 } … … 56 54 if (label) { 57 55 // delete label; 58 if (label ) xfree((void**)&label);59 56 label =NULL; 60 57 } 61 58 if (icon) { 62 59 // delete icon; 63 if (icon ) xfree((void**)&icon);64 60 icon =NULL; 65 61 } … … 189 185 &ncom,&pcom)) { 190 186 if (!strncmp(kstri,"</Style", 7)) { 191 x free((void**)&kstri);187 xDelete<char>(kstri); 192 188 break; 193 189 } … … 230 226 KML_StyleSelector::Read(fid,kstri); 231 227 232 x free((void**)&kstri);228 xDelete<char>(kstri); 233 229 } 234 230 … … 236 232 237 233 for (ncom; ncom>0; ncom--) 238 x free((void**)&(pcom[ncom-1]));239 x free((void**)&pcom);240 241 return; 242 } 243 /*}}}*/ 234 xDelete<char>(pcom[ncom-1]); 235 xDelete<char*>(pcom); 236 237 return; 238 } 239 /*}}}*/
Note:
See TracChangeset
for help on using the changeset viewer.