Fix a memory leak in init_look.

init_look may be called from cmd_set so we've to free Zathura.Style.font first.
This commit is contained in:
Sebastian Ramacher 2010-11-17 09:46:05 +01:00
parent dd20047a16
commit 8014327d50

View file

@ -497,6 +497,7 @@ init_look(void)
gdk_color_parse(search_highlight, &(Zathura.Style.search_highlight));
gdk_color_parse(select_text, &(Zathura.Style.select_text));
pango_font_description_free(Zathura.Style.font);
Zathura.Style.font = pango_font_description_from_string(font);
/* window and viewport */