diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-05 16:48:10 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-05 22:29:37 +1000 |
commit | d10a0a8c4156fef6ac64362bf046411f57a3ed5f (patch) | |
tree | 28a09c751d6e10cfa1e29dce0745e05192fb09be | |
parent | Implement title_format (diff) | |
download | sway-d10a0a8c4156fef6ac64362bf046411f57a3ed5f.tar.gz sway-d10a0a8c4156fef6ac64362bf046411f57a3ed5f.tar.zst sway-d10a0a8c4156fef6ac64362bf046411f57a3ed5f.zip |
Fix memory leak in title_format command
-rw-r--r-- | sway/commands/title_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/title_format.c b/sway/commands/title_format.c index a2f6e6ff..26ddb2f4 100644 --- a/sway/commands/title_format.c +++ b/sway/commands/title_format.c | |||
@@ -23,7 +23,7 @@ struct cmd_results *cmd_title_format(int argc, char **argv) { | |||
23 | if (view->title_format) { | 23 | if (view->title_format) { |
24 | free(view->title_format); | 24 | free(view->title_format); |
25 | } | 25 | } |
26 | view->title_format = strdup(format); | 26 | view->title_format = format; |
27 | view_update_title(view, true); | 27 | view_update_title(view, true); |
28 | config_find_font_height(true); | 28 | config_find_font_height(true); |
29 | arrange_root(); | 29 | arrange_root(); |