Skip to content

Commit

Permalink
Check exists settings on destory
Browse files Browse the repository at this point in the history
  • Loading branch information
surefire committed Apr 5, 2018
1 parent a26a480 commit 51411cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions quake-mode@repsac-by.github.com/quakemodeapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ var QuakeModeApp = class {

destroy() {
this.state = state.DEAD;
this.settings.run_dispose();
this.settings = null;

if ( this.settings ) {
this.settings.run_dispose();
this.settings = null;
}

this.win = null;
this.app = null;
Expand Down

0 comments on commit 51411cd

Please sign in to comment.