diff --git a/plugins/spine/src/SpinePlugin.js b/plugins/spine/src/SpinePlugin.js index 58013d06e..fb8ca5c6d 100644 --- a/plugins/spine/src/SpinePlugin.js +++ b/plugins/spine/src/SpinePlugin.js @@ -1131,13 +1131,11 @@ var SpinePlugin = new Class({ this.pluginManager = null; - if (sceneRenderer) + if (this.sceneRenderer) { - sceneRenderer.dispose(); - sceneRenderer = null; + this.sceneRenderer.dispose(); + this.sceneRenderer = null; } - - this.sceneRenderer = null; } });