Bug 1061970: Check if JS variable 'this._statements' is defined before using it (and use 'for...of'), in CPS2_destroy(). r=adw

This commit is contained in:
Daniel Holbert 2014-09-03 14:14:37 -07:00
Родитель 59742ef208
Коммит a5eb334494
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -654,8 +654,10 @@ ContentPrefService2.prototype = {
},
destroy: function CPS2_destroy() {
for each (let stmt in this._statements) {
stmt.finalize();
if (this._statements) {
for (let stmt of this._statements) {
stmt.finalize();
}
}
},