summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:49:22 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-08-17 11:50:02 (GMT)
commit58e5dbb977bf7f52c2a374e589de2faaa336dbb9 (patch)
treec053185e538c044f4605901120442d371dea7e54 /src/gui
parentc09c9704a934000425a1f4a0db0c59f09eaee041 (diff)
downloadQt-58e5dbb977bf7f52c2a374e589de2faaa336dbb9.zip
Qt-58e5dbb977bf7f52c2a374e589de2faaa336dbb9.tar.gz
Qt-58e5dbb977bf7f52c2a374e589de2faaa336dbb9.tar.bz2
qpdf: fix memory leak detected by coverity
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qpdf.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qpdf.cpp b/src/gui/painting/qpdf.cpp
index 9b3b289..6a7889a 100644
--- a/src/gui/painting/qpdf.cpp
+++ b/src/gui/painting/qpdf.cpp
@@ -1773,6 +1773,9 @@ bool QPdfBaseEnginePrivate::openPrintDevice()
(void)execv("/bin/lpr", lprargs);
(void)execv("/usr/bin/lp", lpargs);
(void)execv("/usr/bin/lpr", lprargs);
+
+ delete []lpargs;
+ delete []lprargs;
}
// if we couldn't exec anything, close the fd,
// wait for a second so the parent process (the