Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Statement.cc

    r1d4580a r2037f82  
    124124        Statement( other ), condition( maybeClone( other.condition ) ), thenPart( maybeClone( other.thenPart ) ), elsePart( maybeClone( other.elsePart ) ) {}
    125125
    126 IfStmt::~IfStmt() {}
     126IfStmt::~IfStmt() {
     127        delete condition;
     128        delete thenPart;
     129        delete elsePart;
     130}
    127131
    128132void IfStmt::print( std::ostream &os, int indent ) const {
     
    155159        delete condition;
    156160        // destroy statements
     161        deleteAll( statements );
    157162}
    158163
     
    183188CaseStmt::~CaseStmt() {
    184189        delete condition;
     190        deleteAll( stmts );
    185191}
    186192
     
    216222WhileStmt::~WhileStmt() {
    217223        delete body;
     224        delete condition;
    218225}
    219226
     
    290297TryStmt::~TryStmt() {
    291298        delete block;
     299        deleteAll( handlers );
     300        delete finallyBlock;
    292301}
    293302
Note: See TracChangeset for help on using the changeset viewer.