projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8431f
)
Destroy back buffer in acknowledge handler.
author
Kristian Høgsberg
<krh@redhat.com>
Mon, 8 Dec 2008 14:57:08 +0000
(09:57 -0500)
committer
Kristian Høgsberg
<krh@redhat.com>
Mon, 8 Dec 2008 14:57:08 +0000
(09:57 -0500)
terminal.c
patch
|
blob
|
history
diff --git
a/terminal.c
b/terminal.c
index
be620fc
..
f210341
100644
(file)
--- 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 {