aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcrvs <jfpbdc@kth.se>2019-02-04 17:28:56 +0100
committerLukas Fleischer <lfleischer@calcurse.org>2019-02-04 21:45:08 +0100
commit7b81e69a19913b4d8c830bda8d988f8fc8391b21 (patch)
treeea43ab93ad3271c4c73f5a693eacac675b90759e
parent5657e19e175da5abe101038ff6d8153dda9854a3 (diff)
downloadcalcurse-7b81e69a19913b4d8c830bda8d988f8fc8391b21.tar.gz
calcurse-7b81e69a19913b4d8c830bda8d988f8fc8391b21.zip
Close stream after exporting iCal item
Fixes GitHub issue #178. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/io.c1
1 files changed, 1 insertions, 0 deletions
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);
}