fix a couple of memory leaks

svn path=/trunk/KDE/kdegraphics/okular/; revision=719233
This commit is contained in:
Pino Toscano 2007-09-30 16:37:10 +00:00
parent 5dc92c5824
commit 35d64add5c
2 changed files with 2 additions and 0 deletions

View file

@ -164,6 +164,7 @@ void GSHandler::init(const QString &media, double magnify, int width, int height
handleErrorCode(errorCode);
for (int i = 0; i < t; ++i) delete[] args[i];
delete[] args;
QString set = QString("<< /Orientation %1 >> setpagedevice .locksafe").arg(orientation);
gsapi_run_string_with_length(m_ghostScriptInstance, set.toLatin1().constData(), set.length(), 0, &errorCode);

View file

@ -112,6 +112,7 @@ GSInternalDocument::GSInternalDocument(const QString &fname, Format form) : m_er
GSInternalDocument::~GSInternalDocument()
{
delete docInfo;
delete m_dsc;
}
const Okular::DocumentInfo * GSInternalDocument::generateDocumentInfo()