diff options
author | James Booth <boothj5@gmail.com> | 2015-06-24 14:27:40 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-06-24 14:27:40 +0100 |
commit | 17919298f78531dbec1eb1b22db1dfc8ad76d854 (patch) | |
tree | 93bdb9d28542a0944e0662c3003602b041784d3e /src/ui/statusbar.c | |
parent | 815ca16f48b38fea0f8e06fb0164e4ba1894a932 (diff) | |
download | profani-tty-17919298f78531dbec1eb1b22db1dfc8ad76d854.tar.gz |
Free prefs strings, check for NULLs when closing pgp module
Diffstat (limited to 'src/ui/statusbar.c')
-rw-r--r-- | src/ui/statusbar.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ui/statusbar.c b/src/ui/statusbar.c index 581e63df..97321bca 100644 --- a/src/ui/statusbar.c +++ b/src/ui/statusbar.c @@ -136,6 +136,7 @@ status_bar_resize(void) } else { mvwprintw(status_bar, 0, 1, message); } + prefs_free_string(time_pref); } if (last_time) { g_date_time_unref(last_time); @@ -310,6 +311,7 @@ status_bar_print_message(const char * const msg) } else { mvwprintw(status_bar, 0, 1, message); } + prefs_free_string(time_pref); int cols = getmaxx(stdscr); int bracket_attrs = theme_attrs(THEME_STATUS_BRACKET); @@ -459,6 +461,7 @@ _status_bar_draw(void) wattroff(status_bar, bracket_attrs); g_free(date_fmt); } + prefs_free_string(time_pref); _update_win_statuses(); wnoutrefresh(status_bar); |