diff options
-rw-r--r-- | wikipedia/widgets/category_button.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wikipedia/widgets/category_button.js b/wikipedia/widgets/category_button.js index 7044829..667a816 100644 --- a/wikipedia/widgets/category_button.js +++ b/wikipedia/widgets/category_button.js @@ -197,7 +197,12 @@ const CategoryButton = new Lang.Class({ Gdk.cairo_set_source_pixbuf(cr, this._pixbuf, 0, 0); cr.paint(); } - this.parent(cr); + let ret = this.parent(cr); + // We need to manually call dispose on cairo contexts. This is somewhat related to the bug listed here + // https://bugzilla.gnome.org/show_bug.cgi?id=685513 for the shell. We should see if they come up with + // a better fix in the future, i.e. fix this through gjs. + cr.$dispose(); + return ret; }, // HANDLERS |