GNOME Bugzilla – Bug 495073
Ignore duplicate SpellError objects
Last modified: 2007-11-22 15:05:09 UTC
Forwarding this from a downstream bug report: http://bugzilla.redhat.com/show_bug.cgi?id=353121 Possibly related to bug #257930, bug #272988, bug #347558, and bug #355481. Dan Williams reported and investigated this, I just fixed up his original patch. --- Don't add the same SpellError object to a line's spell_errors list. Works around whatever bug causes gtkhtml3's memory usage to balloon in certain situations where it adds millions of duplicate SpellError objects to a line's spell_errors list. Keep the list sorted when merging objects too. (See the downstream bug for further discussion.)
Created attachment 98779 [details] [review] Proposed patch Based on Dan's original patch. Seems to work for me but hard to tell if it solves the resource consumption problem.
Created attachment 98780 [details] [review] Revised patch First patch was slightly out of date. This revision comments the logic in merge_spell_errors().
Matt, sounds fine to me. commit to stable/head.
Committed to trunk (revision 8631) and gnome-2-20 branch (revision 8632).