From 0fac0504ac738869a24281ba1c53c2018f24e4eb Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 5 Apr 2023 15:50:59 +0200 Subject: [PATCH] [cpp] Fix incorrectly referencing attachment when adding skin to another skin. --- spine-cpp/spine-cpp/src/spine/Skin.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/spine-cpp/spine-cpp/src/spine/Skin.cpp b/spine-cpp/spine-cpp/src/spine/Skin.cpp index 01dcbb2d9..ea4114c23 100644 --- a/spine-cpp/spine-cpp/src/spine/Skin.cpp +++ b/spine-cpp/spine-cpp/src/spine/Skin.cpp @@ -164,7 +164,6 @@ void Skin::addSkin(Skin *other) { AttachmentMap::Entries entries = other->getAttachments(); while (entries.hasNext()) { AttachmentMap::Entry &entry = entries.next(); - entry._attachment->reference(); setAttachment(entry._slotIndex, entry._name, entry._attachment); } }