aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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