Track which list (images or saved_images) each image is on so they can be

removed from the correct list when the total image count is reached. Fixes
crash reported by xlabai at tencent dot com.
This commit is contained in:
Nicholas Marriott
2026-04-27 13:09:07 +01:00
parent 61a7be0eab
commit fc6d94a9f8
3 changed files with 18 additions and 7 deletions

4
tmux.h
View File

@@ -971,8 +971,10 @@ struct image {
u_int sx;
u_int sy;
TAILQ_ENTRY (image) all_entry;
struct images *list;
TAILQ_ENTRY (image) entry;
TAILQ_ENTRY (image) all_entry;
};
TAILQ_HEAD(images, image);
#endif