From 0ee809546c95845ba711653c5cc6e2bfb285da8e Mon Sep 17 00:00:00 2001 From: Leo Broukhis Date: Mon, 19 Jan 2015 09:41:15 -0800 Subject: [PATCH] BESM6: Fonts should be closed explicitly before terminating SDL_ttf. --- BESM6/besm6_panel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BESM6/besm6_panel.c b/BESM6/besm6_panel.c index af03dae1..e3e4317a 100644 --- a/BESM6/besm6_panel.c +++ b/BESM6/besm6_panel.c @@ -382,6 +382,8 @@ t_stat besm6_close_panel (UNIT *u, int32 val, char *cptr, void *desc) { if (! screen) return SCPE_NOTATT; + if (font_big) TTF_CloseFont(font_big); + if (font_small) TTF_CloseFont(font_small); TTF_Quit(); SDL_Quit(); screen = 0;