From 568571ee0436bd135450c8774861fab3b6e3ed19 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Mon, 22 Aug 2022 06:03:59 +0300 Subject: [PATCH 51/51] sdl2: Fix science_report_dialog_popup() theme leak See osdn #45422 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/repodlgs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/gui-sdl2/repodlgs.c b/client/gui-sdl2/repodlgs.c index a863cdc9ec..98651a8c01 100644 --- a/client/gui-sdl2/repodlgs.c +++ b/client/gui-sdl2/repodlgs.c @@ -3390,6 +3390,7 @@ void science_report_dialog_popup(bool raise) science_dlg->end_widget_list = pwindow; background = theme_get_background(active_theme, BACKGROUND_SCIENCEDLG); + FREESURFACE(pwindow->theme); pwindow->theme = resize_surface(background, pwindow->size.w, pwindow->size.h, 1); FREESURFACE(background); -- 2.35.1