aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/screen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/screen.c b/src/screen.c
index 034855702..339525523 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -421,13 +421,14 @@ screen_exit(void)
endwin();
+ if (mode_fn->close != NULL)
+ mode_fn->close();
+
/* close and exit all screens (playlist,browse,help...) */
i=0;
while (screens[i].functions) {
const struct screen_functions *sf = screens[i].functions;
- if (sf->close)
- sf->close();
if (sf->exit)
sf->exit();