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.

https://bugzilla.gnome.org/show_bug.cgi?id=739252
This commit is contained in:
Rui Matos 2014-10-27 16:45:31 +01:00
parent f5cc579272
commit 260657c0b8

View File

@ -172,6 +172,7 @@ const BackgroundCache = new Lang.Class({
})); }));
GLib.Source.set_name_by_id(id, '[gnome-shell] params.onLoaded'); GLib.Source.set_name_by_id(id, '[gnome-shell] params.onLoaded');
} }
return;
} }
let animation = new Animation({ file: params.file }); let animation = new Animation({ file: params.file });