diff options
Diffstat (limited to 'swaynag/config.c')
-rw-r--r-- | swaynag/config.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/swaynag/config.c b/swaynag/config.c index a0bf3197..6c8c26fc 100644 --- a/swaynag/config.c +++ b/swaynag/config.c @@ -226,10 +226,8 @@ int swaynag_parse_options(int argc, char **argv, struct swaynag *swaynag, break; case 'f': // Font if (type) { - free(type->font); pango_font_description_free(type->font_description); - type->font = strdup(optarg); - type->font_description = pango_font_description_from_string(type->font); + type->font_description = pango_font_description_from_string(optarg); } break; case 'l': // Detailed Message |