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-13 06:32:48 +0100
commit4a97f3afcd0ff1f12a917add18372c5fd0411e49 (patch)
tree92120e7211e1b15dbe026964545354a66dbe5f23
parent78f0fe37817881a2805a06982d7112a0b19b8d64 (diff)
downloadpa-sink-ctl-4a97f3afcd0ff1f12a917add18372c5fd0411e49.tar.gz
pa-sink-ctl-4a97f3afcd0ff1f12a917add18372c5fd0411e49.tar.bz2
pa-sink-ctl-4a97f3afcd0ff1f12a917add18372c5fd0411e49.zip
Drop invalid call to delscreen(NULL)ellpise
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 380eae9..92415c3 100644
--- a/src/interface.c
+++ b/src/interface.c
@@ -401,7 +401,6 @@ interface_clear(struct interface *ifc)
delwin(ifc->menu_win);
delwin(ifc->msg_win);
endwin();
- delscreen(NULL);
if (ifc->status)
g_free(ifc->status);
}