Skip to content

Commit

Permalink
Merge pull request #133 from v-kiniv/fix/crash-on-style-delete
Browse files Browse the repository at this point in the history
Fix crash on style.delete()
  • Loading branch information
floryst authored May 28, 2024
2 parents 5ff3d53 + 0c0722f commit b7d8861
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,12 @@ export default class View extends Component {
this.interactor.setInteractorStyle(null);
}

this.style.delete();
if (this.style) {
this.style.delete();
this.style = null;
}
this.defaultStyle.delete();
this.defaultStyle = null;
this.style = null;
this.renderer = null;
this.selector = null;
this.orientationWidget = null;
Expand Down

0 comments on commit b7d8861

Please sign in to comment.