Tk Source Code

Check-in [0a7452d8]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [3515522fff]: [wm forget] did not release the menubar of the toplevel, so destroying it or the menu later crashed on Windows (TkWinGetWrapperWindow() dereferenced the NULL wmInfoPtr of the frame). The menubar is now released when a toplevel becomes a frame, and TkWinGetWrapperWindow() returns NULL for a window which is not a toplevel. New tests wm-forget-2.2 and wm-forget-2.3.
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | wm-forget-release-menubar
Files: files | file ages | folders
SHA3-256: 0a7452d86d1422487672a6c31a0f3a78300fa32d6dc925abcdaa55413f897d8c
User & Date: serhiy.storchaka 2026-10-25 07:51:59.199
References
2026-10-25
07:53 • Ticket [3515522f] Crash when adding system menu to undocked window status still Open with 4 other changes artifact: 7a55d608 user: serhiy.storchaka
Context
2026-10-27
16:07
Fix [351552]: "wm forget" did not release the menubar of the toplevel check-in: 42b7b7e9 user: jan.nijtmans tags: trunk, main
2026-10-25
07:51
Fix [3515522fff]: [wm forget] did not release the menubar of the toplevel, so destroying it or the menu later crashed on Windows (TkWinGetWrapperWindow() dereferenced the NULL wmInfoPtr of the frame). The menubar is now released when a toplevel becomes a frame, and TkWinGetWrapperWindow() returns NULL for a window which is not a toplevel. New tests wm-forget-2.2 and wm-forget-2.3. closed check-in: 0a7452d8 user: serhiy.storchaka tags: wm-forget-release-menubar
2026-10-24
17:10
Fix for [562c3a3da5]: transient windows don't appear on Windows check-in: b56b1a05 user: csaba tags: trunk, main
Changes
Unified Diff Side-by-Side Diff Patch
Changes to generic/tkFrame.c.
Changes to tests/wm.test.
Changes to win/tkWinWm.c.