summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2021-08-09 11:13:43 +0900
committerMichele Calgaro <[email protected]>2021-08-09 11:13:43 +0900
commita2edae37ace5b2b9172721a8ca9f63b9b441aacf (patch)
tree0df6558e6aac90368f4c4fba792b8ebd4a04ed62
parent4a8875301d14703b8760e0f3e4246331069cf7bb (diff)
downloadtdelibs-a2edae37ace5b2b9172721a8ca9f63b9b441aacf.tar.gz
tdelibs-a2edae37ace5b2b9172721a8ca9f63b9b441aacf.zip
tdehw lib: make the call to close the file explicit.
Signed-off-by: Michele Calgaro <[email protected]>
-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 e3f81fce7..a9b9ab206 100644
--- a/tdecore/tdehw/tdestoragedevice.cpp
+++ b/tdecore/tdehw/tdestoragedevice.cpp
@@ -719,6 +719,7 @@ TQString TDEStorageDevice::mountPath() {
if ((testNode == deviceNode()) || (testNode == mappedName()) || (testNode == ("/dev/disk/by-uuid/" + diskUUID()))) {
TQString ret = *mountInfo.at(1);
ret.replace("\\040", " ");
+ file.close();
return ret;
}
lines += line;