X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRefCounter.h;h=bb036b7f5a5462ffb133fbbcc071badf76551e77;hb=209f09716365d35c7cdc5b94684d1d1fb00335c7;hp=ce9858acaef3bbf7c8c8715f79dfd66cb1cc1414;hpb=aa691517fbdb02c3daa7e6095ca5e1bbca3e5ed3;p=gdcm.git diff --git a/src/gdcmRefCounter.h b/src/gdcmRefCounter.h index ce9858ac..bb036b7f 100644 --- a/src/gdcmRefCounter.h +++ b/src/gdcmRefCounter.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRefCounter.h,v $ Language: C++ - Date: $Date: 2005/10/26 15:41:29 $ - Version: $Revision: 1.8 $ + Date: $Date: 2006/04/11 16:03:26 $ + Version: $Revision: 1.10 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,7 +20,8 @@ #define GDCMREFCOUNTER_H #include "gdcmBase.h" -#include "gdcmDebug.h" +//#include "gdcmDebug.h" +#include namespace gdcm { @@ -48,9 +49,10 @@ public: /// \remarks It decrements the reference counting void Unregister() { +//std::cout <<"================Unreg " << typeid(*this).name() << std::endl; RefCount--; if(RefCount<=0) - delete this; + delete this; } /// \brief Get the reference counting /// \return Reference count