diff --git a/extensions/dragonbones/ArmatureDisplay.js b/extensions/dragonbones/ArmatureDisplay.js index e1a4b294e6..c8e41e8f6a 100644 --- a/extensions/dragonbones/ArmatureDisplay.js +++ b/extensions/dragonbones/ArmatureDisplay.js @@ -284,7 +284,14 @@ dragonBones.ArmatureDisplay = cc.Class({ // IMPLEMENT ctor: function () { - this._factory = dragonBones.CCFactory.getInstance(); + if (CC_JSB) { + // TODO Fix me + // If using the getFactory in JSB. + // There may be throw errors when close the application. + this._factory = new dragonBones.CCFactory(); + } else { + this._factory = dragonBones.CCFactory.getInstance(); + } }, __preload: function () {