diff options
author | Ian Fan <ianfan0@gmail.com> | 2020-03-05 16:28:43 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-03-30 17:31:00 +0200 |
commit | b54f5e170a2936bc272aca7fe44a90059f6da716 (patch) | |
tree | 17cad312fbe415706927de260a48837656523bd9 /swaybar/input.c | |
parent | df48c48123de88a91362844881fa20eddc30f597 (diff) |
swaybar: fix memory leaks
Diffstat (limited to 'swaybar/input.c')
-rw-r--r-- | swaybar/input.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/input.c b/swaybar/input.c index c0352300..f768cd40 100644 --- a/swaybar/input.c +++ b/swaybar/input.c @@ -438,6 +438,9 @@ void swaybar_seat_free(struct swaybar_seat *seat) { if (seat->pointer.pointer != NULL) { wl_pointer_release(seat->pointer.pointer); } + if (seat->pointer.cursor_theme != NULL) { + wl_cursor_theme_destroy(seat->pointer.cursor_theme); + } if (seat->pointer.cursor_surface != NULL) { wl_surface_destroy(seat->pointer.cursor_surface); } |