diff --git a/plugins/spine/src/SpinePlugin.js b/plugins/spine/src/SpinePlugin.js index 7a1e01918..e34b462c4 100644 --- a/plugins/spine/src/SpinePlugin.js +++ b/plugins/spine/src/SpinePlugin.js @@ -1128,18 +1128,16 @@ var SpinePlugin = new Class({ */ gameDestroy: function () { - this.destroy(); + this.pluginManager.removeGameObject('spine', true, true); + this.pluginManager.removeGameObject('spineContainer', true, true); + this.pluginManager = null; if (sceneRenderer) { sceneRenderer.dispose(); + sceneRenderer = null; } - this.sceneRenderer = null; - this.pluginManager = null; - - this.pluginManager.removeGameObject('spine', true, true); - this.pluginManager.removeGameObject('spineContainer', true, true); } });