Don't leak the BMediaFile. CID 5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27700 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
0135e2e324
commit
b0acb3febf
@ -29,6 +29,8 @@ BSoundFile::BSoundFile(const entry_ref *ref,
|
|||||||
BSoundFile::~BSoundFile()
|
BSoundFile::~BSoundFile()
|
||||||
{
|
{
|
||||||
delete fSoundFile;
|
delete fSoundFile;
|
||||||
|
delete fMediaFile;
|
||||||
|
// fMediaTrack will be deleted by the BMediaFile destructor
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user