From 0e8b3f71b81f73e5568341236410e381ac22d332 Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 18 Sep 2018 23:21:08 +0200 Subject: [PATCH] fix(Custom): pclose if continuous script end --- src/modules/custom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/custom.cpp b/src/modules/custom.cpp index 16ed621b..347f51c1 100644 --- a/src/modules/custom.cpp +++ b/src/modules/custom.cpp @@ -46,6 +46,7 @@ void waybar::modules::Custom::continuousWorker() char* buff = nullptr; size_t len = 0; if (getline(&buff, &len, fp) == -1) { + pclose(fp); thread_.stop(); output_ = { 1, "" }; dp.emit();