Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/MoleculeLeafClass.cpp

    ra7aebd r339910  
    8585  //  }
    8686  // remove the leaf itself
    87   if (Leaf != NULL)
    88     removeAtomsinMolecule(Leaf);
     87  if (Leaf != NULL) {
     88    Leaf->removeAtomsinMolecule();
     89    World::getInstance().destroyMolecule(Leaf);
     90    Leaf = NULL;
     91  }
    8992  // remove this Leaf from level list
    9093  if (previous != NULL)
Note: See TracChangeset for help on using the changeset viewer.