glib/poppler-page.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit 772beae4e239d9ccaabbfac126307b0b56f232cf Author: Carlos Garcia Campos <[email protected]> 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++) _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
