GNOME Bugzilla – Bug 739252
BackgroundCache: plug an Animation object leak
Last modified: 2014-10-27 16:52:25 UTC
I'm afraid I don't fully understand the code in background.js but this patch seems to prevent a JS error that occurs some time after disconnecting a monitor: Gjs-WARNING **: JS ERROR: TypeError: monitor is undefined Animation<.update@resource:///org/gnome/shell/ui/background.js:621 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Background<._updateAnimation@resource:///org/gnome/shell/ui/background.js:340 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 @resource:///org/gnome/shell/ui/background.js:403
Created attachment 289459 [details] [review] BackgroundCache: plug an Animation object leak We need to return early in case the animation file is the same, otherwise we'll create a new Animation object and leak the previous one.
Review of attachment 289459 [details] [review]: Nice catch.
Attachment 289459 [details] pushed as 260657c - BackgroundCache: plug an Animation object leak