Fix a bunch of obvious memory leaks at termination
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
@@ -119,9 +119,7 @@ status_bar_init(void)
|
||||
void
|
||||
status_bar_close(void)
|
||||
{
|
||||
if (tz) {
|
||||
g_time_zone_unref(tz);
|
||||
}
|
||||
delwin(statusbar_win);
|
||||
if (statusbar) {
|
||||
if (statusbar->time) {
|
||||
g_free(statusbar->time);
|
||||
@@ -137,6 +135,9 @@ status_bar_close(void)
|
||||
}
|
||||
free(statusbar);
|
||||
}
|
||||
if (tz) {
|
||||
g_time_zone_unref(tz);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user