From 72cb0d598d43f8da30e2167e5ab5413fce8d9bb8 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 4 Mar 2005 16:24:19 +0000 Subject: [PATCH] Temporary revert to previous code (better Mem Leak than Seg Fault ...) --- src/gdcmFileHelper.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index f6f222fa..0a35393d 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2005/03/04 11:15:56 $ - Version: $Revision: 1.26 $ + Date: $Date: 2005/03/04 16:24:19 $ + 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 @@ -1054,15 +1054,15 @@ BinEntry *FileHelper::CopyBinEntry(uint16_t group, uint16_t elem, DocEntry *oldE = FileInternal->GetDocEntry(group, elem); BinEntry *newE; - if( oldE ) // Is this really usefull? if( oldE->GetVR()!=vr ) { - //oldE = NULL; gdcmWarningMacro( " Unconsistent VR for Bin Entry : [" << oldE->GetVR() << "] vs [" << vr << "] for " << std::hex << group << "|" << elem); - delete oldE; + //delete oldE; + oldE = NULL; // Revert temporary to old code to avoid Seg Fault + /// \ todo fixme } if( oldE ) { -- 2.48.1