summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-01 20:05:13 +0000
committerDavid Robillard <d@drobilla.net>2010-02-01 20:05:13 +0000
commitd4789d907030296c15c5b39d10f86982172cfbf8 (patch)
treef69babd2760709393b2b222f0b7fd4dcb93eb5ca /libs
parent192e2593b6f01e64c0cc000331f4221740c032dd (diff)
Fix memory leak.
git-svn-id: svn://localhost/ardour2/branches/3.0@6615 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/audiosource.cc1
1 files changed, 1 insertions, 0 deletions
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;
}