mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-12 20:51:17 +00:00
fix a couple of memory leaks
svn path=/trunk/KDE/kdegraphics/okular/; revision=719233
This commit is contained in:
parent
5dc92c5824
commit
35d64add5c
|
@ -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);
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue