From 8cc85123aee262f9ac061908aff0360247077075 Mon Sep 17 00:00:00 2001 From: Teemu Katajisto Date: Thu, 27 Sep 2012 10:24:34 +0300 Subject: cleanup CUPS tmp files Set fd in openPrintDevice() so that it gets cleaned up properly in closePrintDevice(). Backported from the Qt5 commit: 99bab571b4cb41362e891f1bb1e812119701c932 Task-number: QTBUG-14724 Change-Id: I02968d597822b636078ae89566dd8ed8a948019b Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/painting/qpdf.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp index cf9cd95..d75f654 100644 --- a/src/gui/painting/qpdf.cpp +++ b/src/gui/painting/qpdf.cpp @@ -1686,6 +1686,7 @@ bool QPdfBaseEnginePrivate::openPrintDevice() cupsTempFile = ret.second; outDevice = new QFile(); static_cast(outDevice)->open(ret.first, QIODevice::WriteOnly); + fd = ret.first; #endif #ifndef QT_NO_LPR } else { -- cgit v0.12