summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2022-06-24 12:45:35 +0100
committerDaniel Stone <daniels@collabora.com>2022-06-29 14:33:21 +0100
commitd43931080e281401daaccc7c0cecf4e3c739f5f9 (patch)
treef908016a62473f91ac3717b53cb189b39162c378 /clients
parentfc4fb9fb92948da164b91cf1a05b6106921c1335 (diff)
downloadweston-d43931080e281401daaccc7c0cecf4e3c739f5f9.tar.gz
weston-terminal: Don't leak Cairo fonts
The docs say they're ours to unref. Signed-off-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'clients')
-rw-r--r--clients/terminal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clients/terminal.c b/clients/terminal.c
index 4f873f8a..545ddd4f 100644
--- a/clients/terminal.c
+++ b/clients/terminal.c
@@ -3025,6 +3025,9 @@ terminal_destroy(struct terminal *terminal)
display_unwatch_fd(terminal->display, terminal->master);
close(terminal->master);
+ cairo_scaled_font_destroy(terminal->font_bold);
+ cairo_scaled_font_destroy(terminal->font_normal);
+
widget_destroy(terminal->widget);
window_destroy(terminal->window);