Skip to content

Commit dac85fc

Browse files
committed
Fix Scene3DTest spine::Atlas leak
1 parent 8c7b5dd commit dac85fc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/cpp-tests/Source/Scene3DTest/Scene3DTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ class SkeletonAnimationCullingFix : public SkeletonAnimation
5353
float scale = 1)
5454
{
5555
SkeletonAnimationCullingFix* node = new SkeletonAnimationCullingFix();
56-
spine::Atlas* atlas = new spine::Atlas(std::string(atlasFile).c_str(), AxmolTextureLoader::getInstance());
57-
node->initWithJsonFile(std::string(skeletonDataFile), atlas, scale);
56+
node->initWithJsonFile(std::string{skeletonDataFile}, std::string{atlasFile}, scale);
5857
node->autorelease();
5958
return node;
6059
}

0 commit comments

Comments
 (0)