From: vsr Date: Mon, 21 Sep 2009 13:32:15 +0000 (+0000) Subject: Fix memory leaks X-Git-Tag: V5_1_3rc1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4578c1cfeed516e7b1003f499c5ac8e283c7b176;p=modules%2Fgeom.git Fix memory leaks --- diff --git a/src/GEOM/GEOM_Object.cxx b/src/GEOM/GEOM_Object.cxx index 672ce7835..9a5564765 100644 --- a/src/GEOM/GEOM_Object.cxx +++ b/src/GEOM/GEOM_Object.cxx @@ -21,6 +21,8 @@ // #include +#include "utilities.h" + #include #include #include @@ -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 diff --git a/src/GEOM/GEOM_Object.hxx b/src/GEOM/GEOM_Object.hxx index 67f309bb0..dd2f73ea2 100644 --- a/src/GEOM/GEOM_Object.hxx +++ b/src/GEOM/GEOM_Object.hxx @@ -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);