From 183229074a5d5122c0d30dbb2962be3c10dacb74 Mon Sep 17 00:00:00 2001 From: murray Date: Thu, 16 Jul 2020 17:24:37 +0100 Subject: [PATCH] fix innocuous memory leak in libtsm --- Makefile | 4 ++-- tsm/tsm-screen.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9b19e96..5fa6036 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ WAYLAND_SCANNER := wayland-scanner PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin -VERSION="0.3.0" +VERSION="0.3.1" CFLAGS ?= -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -CFLAGS += -DVERSION=\"$(VERSION)\" +override CFLAGS += -DVERSION=\"$(VERSION)\" VPATH=$(WAYLAND_PROTOCOLS_DIR)/stable/xdg-shell LIBS=-lrt -lm -lutil -lwayland-client -lwayland-cursor -lxkbcommon -Ltsm -lhtsm diff --git a/tsm/tsm-screen.c b/tsm/tsm-screen.c index 9bbc429..c0913e7 100644 --- a/tsm/tsm-screen.c +++ b/tsm/tsm-screen.c @@ -517,6 +517,7 @@ void tsm_screen_unref(struct tsm_screen *con) if (!con->ref || --con->ref) return; + tsm_screen_clear_sb(con); for (i = 0; i < con->line_num; ++i) { line_free(con->main_lines[i]); line_free(con->alt_lines[i]);