Changeset 2291 for trunk/src/objects
- Timestamp:
- Jun 23, 2011, 1:51:42 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/objects/RpParserXML.cc
r1581 r2291 97 97 Rp_TreeSetValue(inf->tree,inf->curr,Rp_ParserXml_Field_VALUE, 98 98 (void *)newValue); 99 delete value;99 delete[] value; 100 100 value = NULL; 101 101 } … … 420 420 } 421 421 // free the old data 422 delete (oldval);422 delete[] oldval; 423 423 oldval = NULL; 424 424 } … … 477 477 if (oldval != NULL) { 478 478 // free the old data 479 delete (oldval);479 delete[] oldval; 480 480 oldval = NULL; 481 481 } … … 491 491 n = vsnprintf(stackSpace, stackSize, format, lst); 492 492 if (n >= stackSize) { 493 delete stackSpace;493 delete[] stackSpace; 494 494 stackSpace = new char[n]; 495 495 vsnprintf(stackSpace, n, format, lst); … … 545 545 n = vsnprintf(stackSpace, stackSize, format, lst); 546 546 if (n >= stackSize) { 547 delete stackSpace;547 delete[] stackSpace; 548 548 stackSpace = new char[n]; 549 549 vsnprintf(stackSpace, n, format, lst); … … 558 558 strcat(newval,stackSpace); 559 559 // free the old data 560 delete (oldval);560 delete[] oldval; 561 561 oldval = NULL; 562 delete (stackSpace);562 delete[] stackSpace; 563 563 stackSpace = NULL; 564 564 }
Note: See TracChangeset
for help on using the changeset viewer.