From 644e1238d425f97b284f3e4cfb02c61d4ec322f2 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sat, 13 Feb 2021 21:29:18 +0200 Subject: App: Fixed crash at shutdown Must remove the resize watcher so it doesn't trigger redraws during shutdown. --- src/app.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/app.c b/src/app.c index cc3614ea..a0054a9f 100644 --- a/src/app.c +++ b/src/app.c @@ -745,6 +745,7 @@ static int run_App_(iApp *d) { refresh_App(); recycle_Garbage(); } + SDL_DelEventWatch(resizeWatcher_, d); return 0; } -- cgit v1.2.3