ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/gclib/gclib/GList.hh
(Generate patch)
# Line 402 | Line 402
402      //error: capacity not within range
403    if (NewCapacity!=fCapacity) {
404     if (NewCapacity==0) {
405      //GFREE(fArray);
405        delete[] fArray;
406        }
407      else {
# Line 412 | Line 411
411        for (int i=0;i<this->fCount;i++) {
412          fArray[i] = oldArray[i];
413          }
414 +      delete[] oldArray;
415        }
416     fCapacity=NewCapacity;
417     }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines