diff options
author | João Abecasis <joao@abecasis.name> | 2009-05-06 14:12:57 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-05-08 11:28:34 (GMT) |
commit | 42e2070925d012845db9cf85e597a17851a0dcb6 (patch) | |
tree | 5b1ab555c9b554027a3daf55e1e848e20a7ca974 /src/corelib/io/qfile.cpp | |
parent | f64bcba9338928107bb4bfc1282b94aa2f696557 (diff) | |
download | Qt-42e2070925d012845db9cf85e597a17851a0dcb6.zip Qt-42e2070925d012845db9cf85e597a17851a0dcb6.tar.gz Qt-42e2070925d012845db9cf85e597a17851a0dcb6.tar.bz2 |
Fix leak of file descriptors in QTemporaryFile
Using setFileName in QFile::copy (introduced recently) has a nasty
side-effect of leaking file descriptors in QTemporaryFile. This happens
because the code assumes the file has been closed. In QTemporaryFile,
we need to explicitly call native file engine close.
Test case by Thiago. Bug report from Arora developers.
Reviewed-by: thiago
Diffstat (limited to 'src/corelib/io/qfile.cpp')
0 files changed, 0 insertions, 0 deletions