Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332677 - app-text/epdfview-0.1.7-r2 Search function leaks memory
Summary: app-text/epdfview-0.1.7-r2 Search function leaks memory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Printing Team
URL: http://trac.emma-soft.com/epdfview/ti...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-13 21:47 UTC by Jim Ramsay (lack) (RETIRED)
Modified: 2011-08-07 15:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix memory leak (epdfview-searchleak.patch,416 bytes, patch)
2010-08-13 21:48 UTC, Jim Ramsay (lack) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-08-13 21:47:11 UTC
This is especially annoying on very long PDF documents, since the memory leak gets worse the more pages through which you search.

Turns out the search code is not freeing a poppler "page" structure that is allocated for every page that is searched.

Patch to follow, which I have also submitted to upstream.
Comment 1 Jim Ramsay (lack) (RETIRED) gentoo-dev 2010-08-13 21:48:45 UTC
Created attachment 242859 [details, diff]
Patch to fix memory leak

As advertised, the patch for the leak.

Submitted to upstream via email since I could not seem to figure out how to post it to the trac bug.
Comment 2 Daniel Pielmeier gentoo-dev 2011-08-07 15:33:33 UTC
Fixed in epdfview-0.1.8