Fix memory leaks

This commit is contained in:
vsr 2009-09-21 13:32:15 +00:00
parent c20be9052a
commit 4578c1cfee
2 changed files with 13 additions and 1 deletions

View File

@ -21,6 +21,8 @@
//
#include <Standard_Stream.hxx>
#include "utilities.h"
#include <GEOM_Object.hxx>
#include <GEOM_Engine.hxx>
#include <GEOM_Solver.hxx>
@ -162,6 +164,16 @@ GEOM_Object::GEOM_Object(TDF_Label& theEntry, int theType)
TDataStd_UAttribute::Set(theEntry, GetObjectID());
}
//=============================================================================
/*!
* Destructor
*/
//=============================================================================
GEOM_Object::~GEOM_Object()
{
MESSAGE("GEOM_Object::~GEOM_Object()");
}
//=============================================================================
/*!
* GetType

View File

@ -156,7 +156,7 @@ class GEOM_Object : public MMgt_TShared
public:
Standard_EXPORT GEOM_Object(TDF_Label& theEntry, int theType);
Standard_EXPORT ~GEOM_Object() {;}
Standard_EXPORT ~GEOM_Object();
//Finds a GEOM_Object on the label theLabel
Standard_EXPORT static Handle(GEOM_Object) GetObject(TDF_Label& theLabel);