From 7b02e0b3b092c86a2d9dec53fbe4e42a53baaaad Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 24 Jun 2022 21:16:10 +0300 Subject: [PATCH 62/62] sdl2: Fix nation selection dialog surface leak See osdn #44893 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/dialogs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/gui-sdl2/dialogs.c b/client/gui-sdl2/dialogs.c index 1041a97a1a..dce12e727f 100644 --- a/client/gui-sdl2/dialogs.c +++ b/client/gui-sdl2/dialogs.c @@ -3137,6 +3137,7 @@ void popup_races_dialog(struct player *pplayer) dst.y = (tmp_surf->h - len) / 2; alphablit(tmp_surf_zoomed, NULL, tmp_surf, &dst, 255); dst.y += (tmp_surf_zoomed->h + adj_size(10)); + FREESURFACE(tmp_surf_zoomed); dst.x = (tmp_surf->w - text_name->w) / 2; alphablit(text_name, NULL, tmp_surf, &dst, 255); -- 2.35.1