weston-terminal: Don't leak Cairo fonts

The docs say they're ours to unref.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 2 years ago
parent fc4fb9fb92
commit d43931080e
  1. 3
      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);

Loading…
Cancel
Save