[poppler] Branch 'poppler-0.16' - glib/poppler-page.cc
Carlos Garcia Campos
carlosgc at kemper.freedesktop.org
Sat Jan 8 01:41:04 PST 2011
glib/poppler-page.cc | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 772beae4e239d9ccaabbfac126307b0b56f232cf
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