[poppler] Branch 'poppler-0.26' - glib/poppler-page.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Fri Jul 25 06:47:11 PDT 2014


 glib/poppler-page.cc |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit e7825f7cbbe7cc9c324fcb34c2e0dcae75f4172a
Author: Carlos Garcia Campos <carlosgc at gnome.org>
Date:   Fri Jul 25 15:45:55 2014 +0200

    glib: Fix a memory leak when getting text layout and attributes

diff --git a/glib/poppler-page.cc b/glib/poppler-page.cc
index a4c9681..34d6e35 100644
--- a/glib/poppler-page.cc
+++ b/glib/poppler-page.cc
@@ -2233,6 +2233,8 @@ poppler_page_get_text_layout_for_area (PopplerPage       *page,
 	      rect->y2 = y2;
 	      offset++;
             }
+
+          delete word_sel;
         }
 
       if (i < n_lines - 1 && offset > 0)
@@ -2394,6 +2396,8 @@ poppler_page_get_text_attributes_for_area (PopplerPage      *page,
               attrs->end_index = offset;
               offset++;
             }
+
+          delete word_sel;
         }
 
       if (i < n_lines - 1)


More information about the poppler mailing list