File tree 2 files changed +12
-4
lines changed
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -513,7 +513,9 @@ const Def = class Export extends React.Component {
513
513
if ( draw . destroy ) {
514
514
draw . destroy ( ) ;
515
515
}
516
- app . destroy ( ) ;
516
+ try {
517
+ app . destroy ( ) ;
518
+ } catch ( e ) { }
517
519
} , mime ) ;
518
520
}
519
521
@@ -729,7 +731,9 @@ const Def = class Export extends React.Component {
729
731
if ( draw . destroy ) {
730
732
draw . destroy ( ) ;
731
733
}
732
- app . destroy ( ) ;
734
+ try {
735
+ app . destroy ( ) ;
736
+ } catch ( e ) { }
733
737
} ;
734
738
735
739
me . frameId = requestIdleCallback ( renderFrames ) ;
Original file line number Diff line number Diff line change @@ -215,7 +215,9 @@ const Def = class Sketch extends React.Component {
215
215
view = this . pixiApp . renderer . view ;
216
216
context = this . pixiApp . renderer . context ;
217
217
218
- this . pixiApp . destroy ( ) ;
218
+ try {
219
+ this . pixiApp . destroy ( ) ;
220
+ } catch ( e ) { }
219
221
}
220
222
221
223
const pixiOptions = assign ( { } , defaultPixiOptions , {
@@ -262,7 +264,9 @@ const Def = class Sketch extends React.Component {
262
264
if ( context ) {
263
265
contexts . push ( context ) ;
264
266
}
265
- this . pixiApp . destroy ( ) ;
267
+ try {
268
+ this . pixiApp . destroy ( ) ;
269
+ } catch ( e ) { }
266
270
this . pixiApp = null ;
267
271
}
268
272
}
You can’t perform that action at this time.
0 commit comments