mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
a3c6135cd2
commit
0766e330eb
@ -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();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user