diff options
Diffstat (limited to 'music')
-rw-r--r-- | music/dmusic.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/music/dmusic.cpp b/music/dmusic.cpp index 9f4f0c10d..28a43803f 100644 --- a/music/dmusic.cpp +++ b/music/dmusic.cpp @@ -113,20 +113,20 @@ static const char* DMusicMidiStart(const char* const* parm) static void DMusicMidiStop(void) { - /* release everything but the segment, which the performance - * will release automatically (and it'll crash if it's been - * released already) */ - seeking = false; - loader->Release(); - loader = NULL; + performance->Stop(NULL, NULL, 0, 0); + + segment->SetParam(GUID_Unload, -1, 0, 0, performance); + segment->Release(); + segment = NULL; performance->CloseDown(); performance->Release(); performance = NULL; - segment = NULL; + loader->Release(); + loader = NULL; proc.CoUninitialize(); } |