Changeset 20200

Show
Ignore:
Timestamp:
05/10/07 15:04:10 (2 years ago)
Author:
aronb
Message:

Fix a few memory leaks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/gadgeteer/gadget/Node.cpp

    r20010 r20200  
    422422   new_packet->parse( reader ); 
    423423 
     424   delete reader; 
     425 
    424426   //NOTE: incoming_data goes out of scope here which means that we are left with only the data that we parsed. 
    425427   //TODO: We could save memory by not parsing the raw DataPacket but just passing the location of the memory that we want to use. 
  • juggler/branches/2.2/modules/gadgeteer/gadget/RemoteInputManager.cpp

    r19729 r20200  
    137137                                               device_name, temp_string, true); 
    138138                     node->send(temp_ack); 
     139                     delete temp_ack; 
    139140                  } 
    140141                  else 
     
    146147                                               temp_string/*BaseType*/, false); 
    147148                     node->send(temp_ack); 
     149                     delete temp_ack; 
    148150                  } 
    149151               } 
     
    160162                                            temp_string/*BaseType*/, false); 
    161163                  node->send(temp_ack); 
     164                  delete temp_ack; 
    162165               } 
    163166               break; 
     
    216219                  temp_reader->setAttrib("rim.timestamp.delta", node->getDelta()); 
    217220                  virtual_device->readObject(temp_reader); 
     221                  delete temp_reader; 
    218222               } 
    219223               break;