| Ticket UUID: | 0beaefa42daddbde33cfff6114134e3bdf96d860 | |||
| Title: | Tk_FindPhoto crash | |||
| Type: | Bug | Version: | 9.1 | |
| Submitter: | emiliano | Created on: | 2026-06-18 18:49:44 | |
| Subsystem: | 41. Photo Images | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2026-06-20 16:43:18 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-06-20 16:43:18 | |||
| Description: |
Calling Tk_FindPhoto() after the main window goes away crashes Tk. The sequence is
A minimal script to reproduce:
Here, photorotate calls Tk_FindPhoto() on their two first arguments. Running it
The solution is to return NULL if winPtr is NULL. Patch is attached. | |||
| User Comments: |
jan.nijtmans added on 2026-06-20 16:43:18:
Fixed now in 9.0 branch and trunk emiliano added on 2026-06-18 19:54:00: Spoke too soon. Not only the function has to return NULL, but also it has to set *typePtrPtr to NULL as well. New patch attached. | |||
Attachments:
- tkImage2.diff [download] added by emiliano on 2026-06-18 19:54:24. [details]
- tkImage.diff [download] added by emiliano on 2026-06-18 18:51:55. [details]
