fix “crash on exit”
Leaving this view here causes some kinda race condition on a lock, causing a crash on exit. Simply removing the volume from the superview fixes the issue.
This commit is contained in:
parent
2febfa1888
commit
3f90c97f39
1 changed files with 5 additions and 0 deletions
|
@ -263,6 +263,11 @@ static GraphicsContext *graphicsContext;
|
|||
if (sharedViewController == nil) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(volume) {
|
||||
[volume removeFromSuperview];
|
||||
volume = nil;
|
||||
}
|
||||
|
||||
Audio_Shutdown();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue