From b94ec5095152b45a5a88a59951eac68c324daa3d Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 13 Feb 2008 11:44:09 +0000 Subject: [PATCH] Avoid memory leaks. Thx to Parikshit Prasad for reporting bug --- src/gdcmDataEntry.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index 7263a80e..416fccf3 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2007/10/30 09:14:41 $ - Version: $Revision: 1.51 $ + Date: $Date: 2008/02/13 11:44:09 $ + Version: $Revision: 1.52 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -789,7 +789,7 @@ void DataEntry::DeleteBinArea(void) delete StrArea; StrArea = 0; } - if (StrArea) + if (StrHexaArea) { delete StrHexaArea; StrHexaArea = 0; -- 2.45.1