|
From: <ds...@us...> - 2010-08-11 22:43:33
|
Revision: 5112
http://sashimi.svn.sourceforge.net/sashimi/?rev=5112&view=rev
Author: dshteyn
Date: 2010-08-11 22:43:26 +0000 (Wed, 11 Aug 2010)
Log Message:
-----------
Fix memory leak in wavelet smoothing function.
Modified Paths:
--------------
branches/4-4/trans_proteomic_pipeline/src/common/spectStrct.cpp
Modified: branches/4-4/trans_proteomic_pipeline/src/common/spectStrct.cpp
===================================================================
--- branches/4-4/trans_proteomic_pipeline/src/common/spectStrct.cpp 2010-08-11 22:23:40 UTC (rev 5111)
+++ branches/4-4/trans_proteomic_pipeline/src/common/spectStrct.cpp 2010-08-11 22:43:26 UTC (rev 5112)
@@ -168,7 +168,6 @@
/*
This function smoothes rough spectrum within a x range.
*/
-
void spectStrct::smoothSpectFlx(double range, int repeats, int smoothWindow, bool wavelet)
{
@@ -311,10 +310,12 @@
if(fabs(d[m][i])<=T)
d[m][i]=0;
}
+
+ C4=(double *)calloc(size,sizeof(double));
+
// (unreadable)
for(m=loop-1;m>=0;m--)
{
- C4=(double *)calloc(size,sizeof(double));
for(i=0;i<size;i++)
C4[i]=0;
for(i=0; i<size; i++)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|