From b2bdfa3e27ff11c8a8b662fd3df2959bee05254e Mon Sep 17 00:00:00 2001 From: nek0 Date: Sat, 22 Sep 2018 00:59:19 +0200 Subject: [PATCH] clean --- src/Main.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Main.hs b/src/Main.hs index af117ba..bfa547e 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -71,6 +71,10 @@ quitGame (MsgKeyboardEvent _ _ SDL.Pressed False sym) | SDL.keysymKeycode sym == SDL.KeycodeEscape = do ad <- A.get ud <- getAffection + let Subsystem w m k = subsystems ud + mapM_ (partUnsubscribe w) (uuid ud) + mapM_ (partUnsubscribe m) (uuid ud) + mapM_ (partUnsubscribe k) (uuid ud) SDL.glMakeCurrent (drawWindow ad) (glContext ad) (ws, _) <- yieldSystemT (0, defStorage) (return ()) putAffection ud