From b51dd0a84be80aa3129ab012b198354c02ad096a Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 6 Mar 2014 15:08:27 -0800 Subject: Prevent another file descriptor leak Signed-off-by: Dirk Hohndel --- qt-ui/subsurfacewebservices.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/subsurfacewebservices.cpp') 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() -- cgit v1.2.3-70-g09d2