mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-18 12:05:14 -04:00
Fix some texture leaks on game exit
This commit is contained in:
parent
b11d5185e8
commit
b2a6fd87ec
@ -55,7 +55,9 @@ namespace ClassicalSharp {
|
||||
void IDisposable.Dispose() {
|
||||
Events.TextureChanged -= TextureChanged;
|
||||
SetNewScreen(null);
|
||||
|
||||
statusScreen.Dispose();
|
||||
hudScreen.Dispose();
|
||||
|
||||
if (activeScreen != null)
|
||||
activeScreen.Dispose();
|
||||
|
Loading…
x
Reference in New Issue
Block a user