From 0376f22d412a3df36a5627243ea97958179f1d00 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 4 Apr 2013 16:36:56 -0400 Subject: [PATCH] background: stop monitoring file after removing from cache https://bugzilla.gnome.org/show_bug.cgi?id=697395 --- js/ui/background.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/ui/background.js b/js/ui/background.js index 2dbde4ade..0e9c3aa95 100644 --- a/js/ui/background.js +++ b/js/ui/background.js @@ -126,6 +126,11 @@ const BackgroundCache = new Lang.Class({ }, removeImageContent: function(content) { + let filename = content.get_filename(); + + if (filename && this._fileMonitors[filename]) + delete this._fileMonitors[filename]; + this._removeContent(this._images, content); },