[poppler] 2 commits - qt4/src qt5/src
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Jul 24 21:07:49 UTC 2016
qt4/src/poppler-document.cc | 6 ++++--
qt5/src/poppler-document.cc | 6 ++++--
2 files changed, 8 insertions(+), 4 deletions(-)
New commits:
commit df6904366d587133760adf0d43a128aa4d35a712
Author: Jakub Kucharski <jakubkucharski97 at gmail.com>
Date: Sun Jul 24 13:14:39 2016 +0200
qt5: fix memory leaks in Document::modificationDate() and Document::creationDate()
diff --git a/qt5/src/poppler-document.cc b/qt5/src/poppler-document.cc
index 651f510..8d2ef44 100644
--- a/qt5/src/poppler-document.cc
+++ b/qt5/src/poppler-document.cc
@@ -469,7 +469,8 @@ namespace Poppler {
return QDateTime();
}
- QString str = UnicodeParsedString(m_doc->doc->getDocInfoCreatDate());
+ QScopedPointer<GooString> goo(m_doc->doc->getDocInfoCreatDate());
+ QString str = UnicodeParsedString(goo.data());
return Poppler::convertDate(str.toLatin1().data());
}
@@ -489,7 +490,8 @@ namespace Poppler {
return QDateTime();
}
- QString str = UnicodeParsedString(m_doc->doc->getDocInfoModDate());
+ QScopedPointer<GooString> goo(m_doc->doc->getDocInfoModDate());
+ QString str = UnicodeParsedString(goo.data());
return Poppler::convertDate(str.toLatin1().data());
}
commit d89ea6ae0ddd70916700a402649a9e0423ae9fbb
Author: Jakub Kucharski <jakubkucharski97 at gmail.com>
Date: Sun Jul 24 13:14:19 2016 +0200
qt4: fix memory leaks in Document::modificationDate() and Document::creationDate()
diff --git a/qt4/src/poppler-document.cc b/qt4/src/poppler-document.cc
index 2893625..93f9a0a 100644
--- a/qt4/src/poppler-document.cc
+++ b/qt4/src/poppler-document.cc
@@ -483,7 +483,8 @@ namespace Poppler {
return QDateTime();
}
- QString str = UnicodeParsedString(m_doc->doc->getDocInfoCreatDate());
+ QScopedPointer<GooString> goo(m_doc->doc->getDocInfoCreatDate());
+ QString str = UnicodeParsedString(goo.data());
return Poppler::convertDate(str.toLatin1().data());
}
@@ -503,7 +504,8 @@ namespace Poppler {
return QDateTime();
}
- QString str = UnicodeParsedString(m_doc->doc->getDocInfoModDate());
+ QScopedPointer<GooString> goo(m_doc->doc->getDocInfoModDate());
+ QString str = UnicodeParsedString(goo.data());
return Poppler::convertDate(str.toLatin1().data());
}
More information about the poppler
mailing list