From 86a973eba279777a540d120278db6d88b824d6fe Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 9 Aug 2021 11:13:43 +0900 Subject: [PATCH] tdehw lib: make the call to close the file explicit. Signed-off-by: Michele Calgaro (cherry picked from commit a2edae37ace5b2b9172721a8ca9f63b9b441aacf) --- tdecore/tdehw/tdestoragedevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tdecore/tdehw/tdestoragedevice.cpp b/tdecore/tdehw/tdestoragedevice.cpp index 1530d6238..585900153 100644 --- a/tdecore/tdehw/tdestoragedevice.cpp +++ b/tdecore/tdehw/tdestoragedevice.cpp @@ -754,6 +754,7 @@ TQString TDEStorageDevice::mountPath() { if ((testNode == deviceNode()) || (testNode == dmaltname) || (testNode == ("/dev/disk/by-uuid/" + diskUUID()))) { TQString ret = *mountInfo.at(1); ret.replace("\\040", " "); + file.close(); return ret; } lines += line;