diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-09-05 12:09:47 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-09-13 04:51:21 +0000 |
commit | ec91e121a75a57b48a34f05ccfe8d68edabe8109 (patch) | |
tree | 6354eb43587c8469a12a922b52c66afbafa619a3 | |
parent | bf5b556861e38b25dc5d4ff8f6e0bd221d6001c9 (diff) |
syncqt: Add the missing file stream close calls
Call close explicitly to avoid any issues related to non-closed file
descriptors.
Change-Id: I02df30032dc04afd5d135d707eff4a6efe6a3ea5
Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io>
(cherry picked from commit e9ca247479206b3d6f3815c599a244d9bfbae394)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 35b3deeb587437396ce42b54dae5bbbb225b74b7)
-rw-r--r-- | src/tools/syncqt/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 4ac03b2f9a..e17a6732d7 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -401,6 +401,7 @@ private: if (!parseArgument(argFromFile)) return false; } + ifs.close(); continue; } @@ -1302,6 +1303,7 @@ public: } } } + input.close(); // Error out if namespace checks are failed. if (!(skipChecks & NamespaceChecks)) { |