mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-05 13:29:50 -05:00
Destroy back buffer in acknowledge handler.
This commit is contained in:
parent
7a8431f670
commit
c47303f2d2
1 changed files with 1 additions and 3 deletions
|
|
@ -96,9 +96,6 @@ terminal_draw_contents(struct terminal *terminal)
|
||||||
}
|
}
|
||||||
cairo_destroy(cr);
|
cairo_destroy(cr);
|
||||||
|
|
||||||
if (terminal->buffer != NULL)
|
|
||||||
buffer_destroy(terminal->buffer, terminal->fd);
|
|
||||||
|
|
||||||
terminal->buffer = buffer_create_from_cairo_surface(terminal->fd, surface);
|
terminal->buffer = buffer_create_from_cairo_surface(terminal->fd, surface);
|
||||||
cairo_surface_destroy(surface);
|
cairo_surface_destroy(surface);
|
||||||
|
|
||||||
|
|
@ -193,6 +190,7 @@ acknowledge_handler(struct window *window, uint32_t key, void *data)
|
||||||
struct terminal *terminal = data;
|
struct terminal *terminal = data;
|
||||||
|
|
||||||
terminal->resize_scheduled = 0;
|
terminal->resize_scheduled = 0;
|
||||||
|
buffer_destroy(terminal->buffer, terminal->fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct key {
|
struct key {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue