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:
+10
-5
@@ -23,13 +23,15 @@
|
||||
#include "debug.h"
|
||||
#include "Synth.h"
|
||||
|
||||
BSynth *be_synth = 0;
|
||||
BSynth* be_synth = NULL;
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
BSynth::BSynth()
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
/* not complete yet */
|
||||
|
||||
delete be_synth;
|
||||
be_synth = this;
|
||||
}
|
||||
|
||||
@@ -37,7 +39,9 @@ BSynth::BSynth()
|
||||
|
||||
BSynth::BSynth(synth_mode synth)
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
/* not complete yet */
|
||||
|
||||
delete be_synth;
|
||||
be_synth = this;
|
||||
}
|
||||
|
||||
@@ -45,8 +49,9 @@ BSynth::BSynth(synth_mode synth)
|
||||
|
||||
BSynth::~BSynth()
|
||||
{
|
||||
UNIMPLEMENTED
|
||||
be_synth = 0;
|
||||
/* not complete yet */
|
||||
|
||||
be_synth = NULL;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user