summaryrefslogtreecommitdiff
path: root/gtk2_ardour/sfdb_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2008-12-18 19:31:00 +0000
committerCarl Hetherington <carl@carlh.net>2008-12-18 19:31:00 +0000
commit4e1f451520975868659f4c00d00883f5f1cd5805 (patch)
tree7a8a51d65d70932e8151bbbeafc8eae49e60cd65 /gtk2_ardour/sfdb_ui.cc
parentbe655cc5af1b059de77bb4215c13f14013fc73da (diff)
Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8 Apologies for the big commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@4332 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.cc')
-rw-r--r--gtk2_ardour/sfdb_ui.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/sfdb_ui.cc b/gtk2_ardour/sfdb_ui.cc
index 799e74898b..a3b3a52925 100644
--- a/gtk2_ardour/sfdb_ui.cc
+++ b/gtk2_ardour/sfdb_ui.cc
@@ -592,9 +592,7 @@ SoundFileBrowser::set_session (Session* s)
void
SoundFileBrowser::add_gain_meter ()
{
- if (gm) {
- delete gm;
- }
+ delete gm;
gm = new GainMeter (*session);
gm->set_io (session->the_auditioner());