[poppler] glib/poppler-page.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Jan 8 01:40:28 PST 2011
glib/poppler-page.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit a9e280508f5d669c8b6e1a6bb888b9369d868ab3
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date: Sat Jan 8 10:39:41 2011 +0100
glib: Fix memory leak when calling poppler_page_get_text_layout() for pages with no text
diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc
index 7554e65..064e4af 100644
--- a/glib/poppler-page.cc
+++ b/glib/poppler-page.cc
@@ -2144,7 +2144,10 @@ poppler_page_get_text_layout (PopplerPage *page,
wordlist = text->makeWordList (gFalse);
if (wordlist->getLength () <= 0)
- return FALSE;
+ {
+ delete wordlist;
+ return FALSE;
+ }
// Getting the array size
for (i = 0; i < wordlist->getLength (); i++)
More information about the poppler
mailing list