summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-08-09 11:13:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-08-09 11:14:02 +0900
commit86a973eba279777a540d120278db6d88b824d6fe (patch)
tree6fb5926d6347cc0fc12b1d1cea2f01b83cc7cf0e
parent2a6ec4a287fb3b1598d45aa5a52dc34599a1a116 (diff)
downloadtdelibs-86a973eba279777a540d120278db6d88b824d6fe.tar.gz
tdelibs-86a973eba279777a540d120278db6d88b824d6fe.zip
tdehw lib: make the call to close the file explicit.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit a2edae37ace5b2b9172721a8ca9f63b9b441aacf)
-rw-r--r--tdecore/tdehw/tdestoragedevice.cpp1
1 files changed, 1 insertions, 0 deletions
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;