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:
Stefano Ceccherini 2008-09-23 08:14:07 +00:00
parent 0135e2e324
commit b0acb3febf
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ BSoundFile::BSoundFile(const entry_ref *ref,
BSoundFile::~BSoundFile()
{
delete fSoundFile;
delete fMediaFile;
// fMediaTrack will be deleted by the BMediaFile destructor
}