From a3a4401d38ab9923701aec49091333f20e6482d7 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 24 Jun 2022 21:20:10 +0300 Subject: [PATCH 29/29] 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 ce0ac58083..a84d5b28e8 100644 --- a/client/gui-sdl2/dialogs.c +++ b/client/gui-sdl2/dialogs.c @@ -3091,6 +3091,7 @@ void popup_races_dialog(struct player *pplayer) dst.y = (pTmp_Surf->h - len) / 2; alphablit(pTmp_Surf_zoomed, NULL, pTmp_Surf, &dst, 255); dst.y += (pTmp_Surf_zoomed->h + adj_size(10)); + FREESURFACE(pTmp_Surf_zoomed); dst.x = (pTmp_Surf->w - pText_Name->w) / 2; alphablit(pText_Name, NULL, pTmp_Surf, &dst, 255); -- 2.35.1