diff options
Diffstat (limited to 'sway/commands/font.c')
-rw-r--r-- | sway/commands/font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/font.c b/sway/commands/font.c index cea720f5..3eda0a9c 100644 --- a/sway/commands/font.c +++ b/sway/commands/font.c @@ -16,12 +16,12 @@ struct cmd_results *cmd_font(int argc, char **argv) { if (strncmp(font, "pango:", 6) == 0) { config->pango_markup = true; config->font = strdup(font + 6); + free(font); } else { config->pango_markup = false; - config->font = strdup(font); + config->font = font; } - free(font); config_update_font_height(); return cmd_results_new(CMD_SUCCESS, NULL); } |