Patch from Pete with changes by myself (bug #7558): BMidiSynth destructor should delete be_synth.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41717 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -36,6 +36,10 @@ BMidiSynth::BMidiSynth()
|
|||||||
BMidiSynth::~BMidiSynth()
|
BMidiSynth::~BMidiSynth()
|
||||||
{
|
{
|
||||||
be_synth->fClientCount--;
|
be_synth->fClientCount--;
|
||||||
|
if (be_synth->fClientCount == 0) {
|
||||||
|
delete be_synth;
|
||||||
|
be_synth = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user