-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak in FillText #136
Comments
Regarding your first screenshot, those are the two leaks I fixed in my patch. However, the problem in Context2d::SetFont seems to be related to the internals of 'cairo_select_font_face'. ] |
The toy function worked out quite well for what we needed, I'm assuming toy doesn't mean it'll have memory leaks, that would be a little odd but that might be the case |
It seems -- I am not 100% sure, though -- that the fix that releases that array of states in the Context2d destructor and called cairo_path_destroy() in Context2d::restorePath() has also made the (seemingly) SetFont leaks go away. Not getting those leaks in Instruments any longer. |
I can still observe that leak with my patches - however, it appears that not every call to SetFont leaks... |
It appears that the leak in FcPatternObjectInsertElt might be incorrectly reported by valgrind. It's suppressed in tests for other applications like for example gtk and chrome. See: Additionally, I have been running a node server serving several hundred images per hour for the last 4 days, and memory usage is not increasing (at least not noticeably). |
(commented on issue #135 in reference to the Context2d leaks that are also in here)
The text was updated successfully, but these errors were encountered: