]> Creatis software - gdcm.git/commitdiff
Very cautiously put gdcmDocentry destr as virtual, to prevent mem leak...well in...
authormalaterre <malaterre>
Wed, 15 Sep 2004 03:50:48 +0000 (03:50 +0000)
committermalaterre <malaterre>
Wed, 15 Sep 2004 03:50:48 +0000 (03:50 +0000)
src/gdcmBinEntry.cxx
src/gdcmDocEntry.h
src/gdcmDocument.cxx

index a010ff7217f4cd08d523ad3df22729ae78b87da2..7f1217a17faf594efe9ec05f390658fe759836fe 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmBinEntry.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/13 12:10:53 $
-  Version:   $Revision: 1.26 $
+  Date:      $Date: 2004/09/15 03:50:48 $
+  Version:   $Revision: 1.27 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -55,7 +55,7 @@ gdcmBinEntry::~gdcmBinEntry()
 {
    if (VoidArea)
    {
-      free (VoidArea);
+      //free (VoidArea);
       VoidArea = 0; // let's be carefull !
    }
 }
index 734a9f8333ffa06a827c0f7f255dda8ab4160d6b..7253dcb012d7d8c852ccce0e868b1c68b38c7c44 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocEntry.h,v $
   Language:  C++
-  Date:      $Date: 2004/09/13 12:10:53 $
-  Version:   $Revision: 1.20 $
+  Date:      $Date: 2004/09/15 03:50:48 $
+  Version:   $Revision: 1.21 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -39,6 +39,7 @@ class GDCM_EXPORT gdcmDocEntry
 {
 public:
    gdcmDocEntry(gdcmDictEntry*);
+   virtual ~gdcmDocEntry() {};
 
    /// Returns the Dicom Group number of the current Dicom Header Entry
    uint16_t      GetGroup()     { return DictEntry->GetGroup();  };
index 54787ed8afbcb5e999f816f069d20af25d72682a..4f066856bf08417e41d9e88954427a4b730bbdd5 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/09/14 16:47:08 $
-  Version:   $Revision: 1.77 $
+  Date:      $Date: 2004/09/15 03:50:48 $
+  Version:   $Revision: 1.78 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -201,7 +201,7 @@ gdcmDocument::~gdcmDocument ()
    for (TagDocEntryHT::const_iterator it = TagHT.begin(); 
                                       it != TagHT.end(); ++it )
    { 
-      delete it->second;
+      //delete it->second; //temp remove
    }
    TagHT.clear();
 }