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:
Conrad Kreyling 2018-04-08 11:30:18 -04:00
parent 2febfa1888
commit 3f90c97f39

View file

@ -263,6 +263,11 @@ static GraphicsContext *graphicsContext;
if (sharedViewController == nil) {
return;
}
if(volume) {
[volume removeFromSuperview];
volume = nil;
}
Audio_Shutdown();