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 "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;
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user