Skip to content

Commit

Permalink
fix innocuous memory leak in libtsm
Browse files Browse the repository at this point in the history
  • Loading branch information
ii8 committed Jul 16, 2020
1 parent 734910b commit 1832290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions tsm/tsm-screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 1832290

Please sign in to comment.