From d475c9074c6a0e429c67b39e2845f344550198f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 30 Oct 2016 10:16:16 +0000 Subject: [PATCH] [GB.GTK] * BUG: Window.Menus[] does not crash anymore. [GB.GTK3] * BUG: Window.Menus[] does not crash anymore. git-svn-id: svn://localhost/gambas/trunk@7944 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- gb.gtk/src/CWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gb.gtk/src/CWindow.cpp b/gb.gtk/src/CWindow.cpp index a41c221a4..a79af23c2 100644 --- a/gb.gtk/src/CWindow.cpp +++ b/gb.gtk/src/CWindow.cpp @@ -592,7 +592,7 @@ BEGIN_METHOD(CWINDOW_menu_get, GB_INTEGER index) return; } - GB.ReturnObject(gMenu::winChildMenu(WINDOW, index)); + GB.ReturnObject(gMenu::winChildMenu(WINDOW, index)->hFree); END_METHOD