mirror of
https://github.com/labwc/labwc.git
synced 2026-04-10 08:21:07 -04:00
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. |
||
|---|---|---|
| .. | ||
| img-png.h | ||
| img-svg.h | ||
| img-xbm.h | ||
| img-xpm.h | ||
| img.h | ||