diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index 773960c9e..199899fe0 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -66,6 +66,7 @@ const LevelBar = new Lang.Class({ cr.arc(radius, h - radius, radius, 0.5 * Math.PI, Math.PI); cr.arc(radius, radius, radius, Math.PI, 1.5 * Math.PI); cr.fill(); + cr.$dispose(); } }); diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 93dc81269..c0e58b379 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -413,6 +413,7 @@ const Arrow = new Lang.Class({ cr.lineTo(w/2, thickness); cr.lineTo(w - thickness / 2, h - thickness / 2); cr.stroke(); + cr.$dispose(); }, vfunc_style_changed: function() {