From c47303f2d23884bf7e76200f7582ac2f50d966d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 8 Dec 2008 09:57:08 -0500 Subject: [PATCH] Destroy back buffer in acknowledge handler. --- terminal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/terminal.c b/terminal.c index be620fcf..f210341e 100644 --- a/terminal.c +++ b/terminal.c @@ -96,9 +96,6 @@ terminal_draw_contents(struct terminal *terminal) } cairo_destroy(cr); - if (terminal->buffer != NULL) - buffer_destroy(terminal->buffer, terminal->fd); - terminal->buffer = buffer_create_from_cairo_surface(terminal->fd, surface); cairo_surface_destroy(surface); @@ -193,6 +190,7 @@ acknowledge_handler(struct window *window, uint32_t key, void *data) struct terminal *terminal = data; terminal->resize_scheduled = 0; + buffer_destroy(terminal->buffer, terminal->fd); } struct key {