summaryrefslogtreecommitdiffstats
path: root/src/plugins/printsupport/cups/qcupsprintengine.cpp
diff options
context:
space:
mode:
authorTeemu Katajisto <teemu.katajisto@digia.com>2012-09-25 14:15:07 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-27 06:07:20 +0200
commit99bab571b4cb41362e891f1bb1e812119701c932 (patch)
tree7383275462f4de92daa4bfe5957be967b7ea69ca /src/plugins/printsupport/cups/qcupsprintengine.cpp
parentbad1384102f5d0dc6b7af2d37f9218cc232b1971 (diff)
QtPrintSupport: cleanup CUPS tmp files
Set fd so that it gets closed in QPdfPrintEnginePrivate::closePrintDevice() Task-number: QTBUG-14724 Change-Id: Ic9c02c92b07ece92911d7bc3eac79689b4864253 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src/plugins/printsupport/cups/qcupsprintengine.cpp')
-rw-r--r--src/plugins/printsupport/cups/qcupsprintengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/printsupport/cups/qcupsprintengine.cpp b/src/plugins/printsupport/cups/qcupsprintengine.cpp
index 82735ee44a..6a0e9a881e 100644
--- a/src/plugins/printsupport/cups/qcupsprintengine.cpp
+++ b/src/plugins/printsupport/cups/qcupsprintengine.cpp
@@ -180,6 +180,7 @@ bool QCupsPrintEnginePrivate::openPrintDevice()
cupsTempFile = ret.second;
outDevice = new QFile();
static_cast<QFile *>(outDevice)->open(ret.first, QIODevice::WriteOnly);
+ fd = ret.first;
}
return true;