diff --git a/spine-cpp/spine-cpp/src/spine/Skin.cpp b/spine-cpp/spine-cpp/src/spine/Skin.cpp
index ea4114c23..01dcbb2d9 100644
--- a/spine-cpp/spine-cpp/src/spine/Skin.cpp
+++ b/spine-cpp/spine-cpp/src/spine/Skin.cpp
@@ -164,6 +164,7 @@ 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);
}
}
diff --git a/spine-godot/.idea/tools/External Tools.xml b/spine-godot/.idea/tools/External Tools.xml
index 01aef4873..6c49dcd9a 100644
--- a/spine-godot/.idea/tools/External Tools.xml
+++ b/spine-godot/.idea/tools/External Tools.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/spine-godot/.idea/workspace.xml b/spine-godot/.idea/workspace.xml
index a9d4a1289..cee7376da 100644
--- a/spine-godot/.idea/workspace.xml
+++ b/spine-godot/.idea/workspace.xml
@@ -91,7 +91,7 @@
-
+
@@ -101,7 +101,7 @@
-
+
diff --git a/spine-godot/build/build.sh b/spine-godot/build/build.sh
index 52b231929..b56bda44f 100755
--- a/spine-godot/build/build.sh
+++ b/spine-godot/build/build.sh
@@ -60,7 +60,7 @@ else
if [ "$OSTYPE" = "msys" ]; then
target="$target vsproj=yes livepp=$LIVEPP"
fi
- scons $target compiledb=yes custom_modules="../spine_godot" --jobs=$cpus
+ scons $target compiledb=yes use_asan=yes custom_modules="../spine_godot" --jobs=$cpus
if [ -f "bin/godot.x11.opt.tools.64" ]; then
strip bin/godot.x11.opt.tools.64
chmod a+x bin/godot.x11.opt.tools.64