weston-terminal: Don't leak Cairo fonts
The docs say they're ours to unref. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
fc4fb9fb92
commit
d43931080e
@ -3025,6 +3025,9 @@ terminal_destroy(struct terminal *terminal)
|
|||||||
display_unwatch_fd(terminal->display, terminal->master);
|
display_unwatch_fd(terminal->display, terminal->master);
|
||||||
close(terminal->master);
|
close(terminal->master);
|
||||||
|
|
||||||
|
cairo_scaled_font_destroy(terminal->font_bold);
|
||||||
|
cairo_scaled_font_destroy(terminal->font_normal);
|
||||||
|
|
||||||
widget_destroy(terminal->widget);
|
widget_destroy(terminal->widget);
|
||||||
window_destroy(terminal->window);
|
window_destroy(terminal->window);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user