mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-06 01:35:59 +01:00
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:
parent
dd20047a16
commit
8014327d50
1 changed files with 1 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue