summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-13 06:32:48 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2020-02-15 07:33:32 +0100
commit31c716066f6d9e076e41fdf4f3708b2c9a89e43f (patch)
treec2c6014dabd868e37dd403fbeb72df552a2e2368
parenta5a93cff8202a365f1c511295ab8174cd6727fe6 (diff)
downloadpa-sink-ctl-31c716066f6d9e076e41fdf4f3708b2c9a89e43f.tar.gz
pa-sink-ctl-31c716066f6d9e076e41fdf4f3708b2c9a89e43f.tar.bz2
pa-sink-ctl-31c716066f6d9e076e41fdf4f3708b2c9a89e43f.zip
Drop invalid call to delscreen(NULL)
Some descriptions said that delscreen frees resources from initscr (which we use) and newterm (which we do not use). Therefore we added delscreen(NULL) in 489e2955687bccb263e1ece3a1615b3356c990f2. It turs out that delscreen does only free resources from newterm and that the argument *sp *must* not be NULL. (Only due to some unreference comparisons this didn't fail in ncurses, but could fail with other curses implementations)
-rw-r--r--src/interface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/interface.c b/src/interface.c
index cdfaba2..1da4ade 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -314,7 +314,6 @@ interface_clear(struct interface *ifc)
delwin(ifc->menu_win);
delwin(ifc->msg_win);
endwin();
- delscreen(NULL);
if (ifc->status)
g_free(ifc->status);
}