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, | |||
226 | break; | 226 | break; |
227 | case 'f': // Font | 227 | case 'f': // Font |
228 | if (type) { | 228 | if (type) { |
229 | free(type->font); | ||
230 | pango_font_description_free(type->font_description); | 229 | pango_font_description_free(type->font_description); |
231 | type->font = strdup(optarg); | 230 | type->font_description = pango_font_description_from_string(optarg); |
232 | type->font_description = pango_font_description_from_string(type->font); | ||
233 | } | 231 | } |
234 | break; | 232 | break; |
235 | case 'l': // Detailed Message | 233 | case 'l': // Detailed Message |