sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit e474d87e42d625eb4e0a41a0559bbf0e4ec5ecc5
parent c7e99ee0d49d2d62339a041495fde3f1b160133a
Author: emersion <contact@emersion.fr>
Date:   Fri, 10 Aug 2018 18:53:18 +0100

Merge pull request #2447 from ianyfan/swaynag-leak

Fix memory leak in swaynag
Diffstat:
Mswaynag/swaynag.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/swaynag/swaynag.c b/swaynag/swaynag.c @@ -110,6 +110,9 @@ static struct wl_surface_listener surface_listener = { static void update_cursor(struct swaynag *swaynag) { struct swaynag_pointer *pointer = &swaynag->pointer; + if (swaynag->pointer.cursor_theme) { + wl_cursor_theme_destroy(swaynag->pointer.cursor_theme); + } pointer->cursor_theme = wl_cursor_theme_load(NULL, 24 * swaynag->scale, swaynag->shm); struct wl_cursor *cursor =