summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-11-27 15:30:48 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-11-27 15:30:48 (GMT)
commit15d8672d0981f4ea8605e3c905f11a71286ff35b (patch)
tree68ddb490d2e30348c26ac5eadc3b9f799e5d92af /src
parentf21d183b26ea824fadb7c54a3ba9cdf66d99b726 (diff)
parent10b5653ad4f25c6f37d640facf4a5ef01fe25926 (diff)
downloadQt-15d8672d0981f4ea8605e3c905f11a71286ff35b.zip
Qt-15d8672d0981f4ea8605e3c905f11a71286ff35b.tar.gz
Qt-15d8672d0981f4ea8605e3c905f11a71286ff35b.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'src')
-rw-r--r--src/corelib/io/qfilesystemwatcher_dnotify.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/io/qfilesystemwatcher_dnotify.cpp b/src/corelib/io/qfilesystemwatcher_dnotify.cpp
index 17ac9c6..03172e5 100644
--- a/src/corelib/io/qfilesystemwatcher_dnotify.cpp
+++ b/src/corelib/io/qfilesystemwatcher_dnotify.cpp
@@ -295,6 +295,9 @@ QStringList QDnotifyFileSystemWatcherEngine::addPaths(const QStringList &paths,
pathToFD.insert(path, fd);
if(parentFd)
parentToFD.insert(parentFd, fd);
+
+ ::closedir(d);
+ if(parent) ::closedir(parent);
}
Directory &directory = fdToDirectory[fd];