sway

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

commit 9412dc7edf29073f069e48a266910ac3c4436170
parent 3b5a8cb40d4ab07aa9a72ba87660e4b9801afa21
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 11 Apr 2016 21:08:44 -0400

Merge pull request #582 from cl91/fix-memory-leaks

Plug two memory leaks
Diffstat:
Msway/border.c | 2++
Msway/container.c | 1+
2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/sway/border.c b/sway/border.c @@ -86,6 +86,8 @@ int get_font_text_height(const char *font) { cairo_t *cr = cairo_create(surface); int width, height; get_text_size(cr, font, &width, &height, "Gg"); + cairo_surface_destroy(surface); + cairo_destroy(cr); return height; } diff --git a/sway/container.c b/sway/container.c @@ -64,6 +64,7 @@ static void free_swayc(swayc_t *cont) { if (cont->bg_pid != 0) { terminate_swaybg(cont->bg_pid); } + free(cont->border); free(cont); }