Tk Source Code

Check-in [42b7b7e9]
Login

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

Overview
Comment:Fix [351552]: "wm forget" did not release the menubar of the toplevel
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | trunk | main
Files: files | file ages | folders
SHA3-256: 42b7b7e95198fb51e12495096310960351a51b621f4997d500ed5cd5c8f4bc47
User & Date: jan.nijtmans 2026-10-27 16:07:57.045
References
2026-10-30
15:03 • Closed ticket [3515522f]: Crash when adding system menu to undocked window plus 10 other changes artifact: ee1c7e93 user: nemethi
Context
2026-10-28
10:32
Fix [351552]: "wm forget" did not release the menubar of the toplevel check-in: c2f2b683 user: jan.nijtmans tags: core-9-0-branch
2026-10-27
16:13
Fix for [2817531fff]: "wm manage" is deficient and flickering check-in: 5e0e41ad user: csaba tags: trunk, main
16:07
Fix [351552]: "wm forget" did not release the menubar of the toplevel check-in: 42b7b7e9 user: jan.nijtmans tags: trunk, main
15:37
Fix d80f8cf33b: tcl/macosx Makefile has fragile `make distclean` check-in: a9969dab 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
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.md.
Changes to generic/tkFrame.c.
Changes to tests/wm.test.
Changes to win/tkWinWm.c.