From 7b81e69a19913b4d8c830bda8d988f8fc8391b21 Mon Sep 17 00:00:00 2001 From: crvs Date: Mon, 4 Feb 2019 17:28:56 +0100 Subject: Close stream after exporting iCal item Fixes GitHub issue #178. Signed-off-by: Lukas Fleischer --- src/io.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/io.c b/src/io.c index 27c6a31..a12ab7c 100644 --- a/src/io.c +++ b/src/io.c @@ -1186,6 +1186,7 @@ void io_export_data(enum export_type type, int export_uid) pcal_export_data(stream); if (show_dialogs() && ui_mode == UI_CURSES) { + fclose(stream); status_mesg(success, enter); keys_wait_for_any_key(win[KEY].p); } -- cgit v1.2.3-54-g00ecf