From d4789d907030296c15c5b39d10f86982172cfbf8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Feb 2010 20:05:13 +0000 Subject: [PATCH] Fix memory leak. git-svn-id: svn://localhost/ardour2/branches/3.0@6615 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/audiosource.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ardour/audiosource.cc b/libs/ardour/audiosource.cc index 0c820eed4d..0eb31c38b2 100644 --- a/libs/ardour/audiosource.cc +++ b/libs/ardour/audiosource.cc @@ -443,6 +443,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, sframes_t s if ((_peakfile = ::open (peakpath.c_str(), O_RDONLY, 0664)) < 0) { error << string_compose(_("AudioSource: cannot open peakpath (b) \"%1\" (%2)"), peakpath, strerror (errno)) << endmsg; + delete [] staging; return 0; }