Skip to content

Commit

Permalink
Fix new addon dispose
Browse files Browse the repository at this point in the history
Fixes #2097
  • Loading branch information
Tyriar committed May 21, 2019
1 parent 9dfac7e commit 7786e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/AddonManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class AddonManager implements IDisposable {
throw new Error('Could not dispose an addon that has not been loaded');
}
loadedAddon.isDisposed = true;
loadedAddon.dispose();
loadedAddon.dispose.apply(loadedAddon.instance);
this._addons.splice(index, 1);
}
}

0 comments on commit 7786e59

Please sign in to comment.