This commit is contained in:
Perfare
2018-01-08 23:53:15 +08:00
parent 17d2140909
commit c00da37267
2 changed files with 23 additions and 21 deletions

View File

@ -1172,7 +1172,7 @@ namespace Unity_Studio
FMODstatusLabel.Text = "Stopped";
FMODinfoLabel.Text = "";
if (sound != null)
if (sound != null && sound.isValid())
{
var result = sound.release();
ERRCHECK(result);