Fix problem when background settings change multiple times in rapid succession

The code that cleaned up when a background actor was destroyed tried to access
the Background as backgroundActor.background._delegate but when the destroy
signal is emitted, the MetaBackgroundActor was already disposed and
backgroundActor.background NULL.
This commit is contained in:
Owen W. Taylor 2014-09-04 10:01:52 -04:00
parent 73977795a6
commit 8096e71c53

View File

@ -701,7 +701,7 @@ const BackgroundManager = new Lang.Class({
background.disconnect(changeSignalId); background.disconnect(changeSignalId);
if (backgroundActor.loadedSignalId) if (backgroundActor.loadedSignalId)
backgroundActor.background._delegate.disconnect(backgroundActor.loadedSignalId); background.disconnect(backgroundActor.loadedSignalId);
})); }));
return backgroundActor; return backgroundActor;