free the font string

This commit is contained in:
Daniel Micay 2012-06-07 13:23:06 -04:00
parent a5cfc12864
commit 4de7c2d2f5
1 changed files with 1 additions and 0 deletions

View File

@ -287,6 +287,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte) {
gchar *font = g_key_file_get_string(config, "options", "font", &error); gchar *font = g_key_file_get_string(config, "options", "font", &error);
IGNORE_ON_ERROR(error) { IGNORE_ON_ERROR(error) {
vte_terminal_set_font_from_string(vte, font); vte_terminal_set_font_from_string(vte, font);
g_free(font);
} }
gint scrollback_lines = g_key_file_get_integer(config, "options", "scrollback_lines", &error); gint scrollback_lines = g_key_file_get_integer(config, "options", "scrollback_lines", &error);