image_viewer: Fix texture leak when reloading images (#58803)

When the image viewer reloads an image after the underlying file
changes, it now tracks the `RenderImage` currently displayed by the view
and drops that image’s atlas entry before replacing it with a newly
decoded render image. This prevents rapidly updated images from
accumulating atlas textures per reload while keeping cleanup scoped to
the window that displayed the image.

Closes #35894

Release Notes:

- Fixed a memory leak when previewing images that are repeatedly updated
on disk.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
a473ea63a8Ron Harel committed on 7/30/2026, 12:35:59 PM· committed by GitHubparentd88f682
8 files changedLine totals unavailable