If a be_synth already existed, the BSynth constructor should

delete it first.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7558 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
mahlzeit
2004-05-13 09:18:38 +00:00
parent 11317581fe
commit 456cec68d1
+10 -5
View File
@@ -23,13 +23,15 @@
#include "debug.h" #include "debug.h"
#include "Synth.h" #include "Synth.h"
BSynth *be_synth = 0; BSynth* be_synth = NULL;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
BSynth::BSynth() BSynth::BSynth()
{ {
UNIMPLEMENTED /* not complete yet */
delete be_synth;
be_synth = this; be_synth = this;
} }
@@ -37,7 +39,9 @@ BSynth::BSynth()
BSynth::BSynth(synth_mode synth) BSynth::BSynth(synth_mode synth)
{ {
UNIMPLEMENTED /* not complete yet */
delete be_synth;
be_synth = this; be_synth = this;
} }
@@ -45,8 +49,9 @@ BSynth::BSynth(synth_mode synth)
BSynth::~BSynth() BSynth::~BSynth()
{ {
UNIMPLEMENTED /* not complete yet */
be_synth = 0;
be_synth = NULL;
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------