labwc/include/img
tokyo4j cffa7c0315 img: fix UAF on Reconfigure by refcounting
Before this commit, there was a use-after-free bug on Reconfigure:
- theme_finish() destroys lab_imgs for titlebar icons
- For some reason, undecorate() calls _create_buffer() in
  scaled-img-buffer.c, which calls img_render() on a destroyed lab_img.

So this commit adds wlr_buffer-like APIs: lab_img_lock(),
lab_img_unlock() and lab_img_drop(). This ensures a lab_img is never
destroyed until no one references it.
2024-12-31 18:44:36 +09:00
..
img-png.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img-svg.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img-xbm.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img-xpm.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img.h img: fix UAF on Reconfigure by refcounting 2024-12-31 18:44:36 +09:00