Bug 1245615 - Nullify hostVsStores only after event unregistration to prevent exceptions. r=mratcliffe

This commit is contained in:
Alexandre Poirot 2016-02-09 02:50:16 -08:00
Родитель 6acab52b3f
Коммит 72335833e6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -213,13 +213,13 @@ StorageActors.defaults = function(typeName, observationTopic, storeObjectType) {
},
destroy: function() {
this.hostVsStores = null;
if (observationTopic) {
Services.obs.removeObserver(this, observationTopic, false);
}
events.off(this.storageActor, "window-ready", this.onWindowReady);
events.off(this.storageActor, "window-destroyed", this.onWindowDestroyed);
this.hostVsStores = null;
this.storageActor = null;
},