[Poppler-bugs] [Bug 9428] New: Memory leak in poppler-page.cc

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Fri Dec 22 12:27:01 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9428          
     
           Summary: Memory leak in poppler-page.cc
           Product: poppler
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: qt frontend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: jepplin at globalvelocity.com


This patch appears to fix it for my purposes.

--- poppler-page.cc.orig        2006-12-22 14:00:04.000000000 -0600
+++ poppler-page.cc     2006-12-22 14:04:58.000000000 -0600
@@ -156,7 +156,9 @@

   for (int i = 0; i < word_list->getLength(); i++) {
     TextWord *word = word_list->get(i);
-    QString string = QString::fromUtf8(word->getText()->getCString());
+    GooString *word_str = word->getText();
+    QString string = QString::fromUtf8(word_str->getCString());
+    delete word_str;
     double xMin, yMin, xMax, yMax;
     word->getBBox(&xMin, &yMin, &xMax, &yMax);          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list