From a2edae37ace5b2b9172721a8ca9f63b9b441aacf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 9 Aug 2021 11:13:43 +0900 Subject: tdehw lib: make the call to close the file explicit. Signed-off-by: Michele Calgaro --- tdecore/tdehw/tdestoragedevice.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tdecore/tdehw') 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; -- cgit v1.2.3