diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-03-06 15:08:27 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-06 15:08:27 -0800 |
commit | b51dd0a84be80aa3129ab012b198354c02ad096a (patch) | |
tree | fa47b3669f31ac2e8a2504ad4fa9fb1b7261f522 /qt-ui/subsurfacewebservices.cpp | |
parent | 689fe36030537ab57d3a5a1a55baf86675d5ecdb (diff) | |
download | subsurface-b51dd0a84be80aa3129ab012b198354c02ad096a.tar.gz |
Prevent another file descriptor leak
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp index abf486035..1d8f88591 100644 --- a/qt-ui/subsurfacewebservices.cpp +++ b/qt-ui/subsurfacewebservices.cpp @@ -787,6 +787,9 @@ void DivelogsDeWebServices::downloadFinished() zip_close(zip); zipFile.close(); +#if defined(Q_OS_UNIX) && defined(LIBZIP_VERSION_MAJOR) + ::close(duppedfd); +#endif } void DivelogsDeWebServices::uploadFinished() |