mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix dragonbones dispose with args's size error warning (#10144)
* fix dragonbones dispose with args's size error warning * fix IArmatureProxy dispose function
This commit is contained in:
@@ -58,7 +58,7 @@ CCArmatureDisplay::CCArmatureDisplay() {
|
||||
}
|
||||
|
||||
CCArmatureDisplay::~CCArmatureDisplay() {
|
||||
dispose(true);
|
||||
dispose();
|
||||
|
||||
if (_debugBuffer) {
|
||||
delete _debugBuffer;
|
||||
@@ -76,7 +76,7 @@ CCArmatureDisplay::~CCArmatureDisplay() {
|
||||
}
|
||||
}
|
||||
|
||||
void CCArmatureDisplay::dispose(bool /*disposeProxy*/) {
|
||||
void CCArmatureDisplay::dispose() {
|
||||
if (_armature != nullptr) {
|
||||
_armature->dispose();
|
||||
_armature = nullptr;
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
void dispose(bool disposeProxy) override;
|
||||
void dispose() override;
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
* @version DragonBones 4.5
|
||||
* @language zh_CN
|
||||
*/
|
||||
virtual void dispose(bool disposeProxy) = 0;
|
||||
virtual void dispose() = 0;
|
||||
/**
|
||||
* - The armature.
|
||||
* @version DragonBones 4.5
|
||||
|
||||
Reference in New Issue
Block a user