Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poppler
poppler
Commits
7be920ec
Commit
7be920ec
authored
Jul 26, 2005
by
Albert Astals Cid
Browse files
Fix mem leak in qt test app
parent
2bc26dff
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
7be920ec
2005-07-26 Albert Astals Cid <aacid@kde.org>
* qt/test-poppler-qt-cpp: Fix mem leak
2005-07-26 Kristian Høgsberg <krh@redhat.com>
* fofi/FoFiType1.cc: Make check for end of encoding array a bit
...
...
qt/test-poppler-qt.cpp
View file @
7be920ec
...
...
@@ -28,6 +28,7 @@ private:
PDFDisplay
::
PDFDisplay
(
Poppler
::
Document
*
d
)
{
doc
=
d
;
pixmap
=
0
;
currentPage
=
0
;
display
();
}
...
...
@@ -70,6 +71,7 @@ void PDFDisplay::display()
if
(
doc
)
{
Poppler
::
Page
*
page
=
doc
->
getPage
(
currentPage
);
if
(
page
)
{
delete
pixmap
;
page
->
renderToPixmap
(
&
pixmap
,
-
1
,
-
1
,
-
1
,
-
1
);
delete
page
;
update
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment