From 03d0c6da8a41e6ba369de1e1c9939b761e206bcc Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 5 Aug 2022 05:08:32 +0300 Subject: [PATCH 29/32] Qt: Fix corner widget leak See osdn #45138 Signed-off-by: Marko Lindqvist --- client/gui-qt/fc_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gui-qt/fc_client.cpp b/client/gui-qt/fc_client.cpp index 851e7b0698..b0c4b6d309 100644 --- a/client/gui-qt/fc_client.cpp +++ b/client/gui-qt/fc_client.cpp @@ -147,8 +147,8 @@ void fc_client::init() // General part not related to any single page menu_bar = new mr_menu(); - corner_wid = new fc_corner(this); if (!gui_options.gui_qt_show_titlebar) { + corner_wid = new fc_corner(this); menu_bar->setCornerWidget(corner_wid); } setMenuBar(menu_bar); -- 2.35.1