Changeset 4401


Ignore:
Timestamp:
07/06/10 08:56:53 (15 years ago)
Author:
Mathieu Morlighem
Message:

Fixed some leaks

Location:
issm/trunk/src/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/issm.cpp

    r4399 r4401  
    113113
    114114        /*Free ressources */
     115        xfree((void**)&analyses);
    115116        delete femmodel;
    116117
  • issm/trunk/src/c/objects/Elements/TriaHook.cpp

    r4400 r4401  
    5959/*FUNCTION TriaHook::SetHookNodes(int* node_ids,int analysis_counter){{{1*/
    6060void TriaHook::SetHookNodes(int* node_ids,int analysis_counter){
     61
     62        /*Delete existing Hook (empty)*/
     63        delete this->hnodes[analysis_counter];
     64
     65        /*Replace by new Hook*/
    6166        this->hnodes[analysis_counter]=new Hook(node_ids,3);
    6267}
  • issm/trunk/src/c/objects/Node.cpp

    r4396 r4401  
    176176Node::~Node(){
    177177        delete inputs;
     178        delete hvertex;
     179        delete hupper_node;
    178180        return;
    179181}
Note: See TracChangeset for help on using the changeset viewer.