Tk Source Code

View Ticket
Login
Ticket UUID: f135418248089a7c2aa03beba18ab5e7a92e3a03
Title: wm iconbitmap/wm iconmask leak previously set bitmap
Type: Bug Version: all
Submitter: chrstphrchvz Created on: 2026-11-08 17:29:54
Subsystem: 40. Bitmap Images Assigned To: chrstphrchvz
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2026-11-10 13:08:29
Resolution: Fixed Closed By: jan.nijtmans
    Closed on: 2026-11-10 13:08:29
Description:

On X11, Windows, and Aqua, doing:

wm iconbitmap $top bitmap1
# not doing [wm iconbitmap $top {}]
wm iconbitmap $top bitmap2

causes bitmap1 to be leaked. The same applies to the wm iconmask subcommand.

These subcommands were recently implemented for the Wayland port by 41a83bec, and somehow without recreating the leak. So that is the example other platforms can follow; please see branches bug-f1354182 (for 9.1), bug-f1354182-c90b (for 9.0), and bug-f1354182-c86b (for 8.6).

These subcommands do not behave as documented on Aqua, but that is a separate issue.

User Comments: jan.nijtmans added on 2026-11-10 13:08:29:

Fixed in [c5aa3f2e|trunk], core-9-0-branch and core-8-6-branch

Many thanks!