aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeff Becker <ampernand@gmail.com>2017-04-23 10:57:46 -0400
committerJeff Becker <ampernand@gmail.com>2017-04-23 10:57:46 -0400
commit6ea89afb98f0a55abe5e7d3b2999dc458e9af300 (patch)
tree86a084b2b69298490809022640e6df080f0b8df0 /src
parent5b7d256a2dd300c6f8b24bde87091d2b10765280 (diff)
downloadwterm-6ea89afb98f0a55abe5e7d3b2999dc458e9af300.zip
wterm-6ea89afb98f0a55abe5e7d3b2999dc458e9af300.tar.gz
wterm-6ea89afb98f0a55abe5e7d3b2999dc458e9af300.tar.bz2
fix leak
Diffstat (limited to 'src')
-rw-r--r--src/st.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/st.c b/src/st.c
index 94ff02f..c9ba807 100644
--- a/src/st.c
+++ b/src/st.c
@@ -2946,6 +2946,11 @@ wlresize(int col, int row)
WLD_FORMAT_ARGB8888, 0);
wld_export(wld.buffer, WLD_WAYLAND_OBJECT_BUFFER, &object);
wl.buffer = object.ptr;
+ if (wld.oldbuffer)
+ {
+ wld_buffer_unreference(wld.oldbuffer);
+ wld.oldbuffer = 0;
+ }
}
uchar