From: <ds...@us...> - 2010-08-25 22:33:59
|
Revision: 5130 http://sashimi.svn.sourceforge.net/sashimi/?rev=5130&view=rev Author: dshteyn Date: 2010-08-25 22:33:53 +0000 (Wed, 25 Aug 2010) Log Message: ----------- Safer Array freeing Modified Paths: -------------- trunk/trans_proteomic_pipeline/src/common/Array.h Modified: trunk/trans_proteomic_pipeline/src/common/Array.h =================================================================== --- trunk/trans_proteomic_pipeline/src/common/Array.h 2010-08-25 22:32:44 UTC (rev 5129) +++ trunk/trans_proteomic_pipeline/src/common/Array.h 2010-08-25 22:33:53 UTC (rev 5130) @@ -192,7 +192,9 @@ } template<class T> Array<T>::~Array() { - free (this->arrPtr_); + if (arrPtr_ != NULL) + free (this->arrPtr_); + arrPtr_ = NULL; } template<class T> Array<T>& Array<T>::operator=(const Array<T>& aRef) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |