From f40eddb92f546f661c78e085ba7893ecc160690c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 8 Jul 2022 02:07:50 +0300 Subject: [PATCH 52/52] Client: Free option gui widgets See osdn #45022 Signed-off-by: Marko Lindqvist --- client/options.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/options.c b/client/options.c index 120d78c37a..6445a417a1 100644 --- a/client/options.c +++ b/client/options.c @@ -4041,6 +4041,8 @@ void server_options_init(void) ****************************************************************************/ static void server_option_free(struct server_option *poption) { + option_gui_remove(&(poption->base_option)); + switch (poption->base_option.type) { case OT_STRING: if (NULL != poption->string.value) { @@ -6146,6 +6148,8 @@ void options_free(void) client_options_iterate_all(poption) { struct client_option *pcoption = CLIENT_OPTION(poption); + option_gui_remove(poption); + switch (option_type(poption)) { case OT_ENUM: fc_assert_action(NULL != pcoption->enumerator.support_names, break); -- 2.35.1