From: jpr Date: Wed, 13 Feb 2008 11:44:09 +0000 (+0000) Subject: Avoid memory leaks. X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b94ec5095152b45a5a88a59951eac68c324daa3d;p=gdcm.git Avoid memory leaks. Thx to Parikshit Prasad for reporting bug --- 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;