Spin - Memory Leak - Atlas?

Has anyone seen this issue with leaking Atlas names?

I’m calling both Atlas_dispose() and SkeletonData_dispose()

Any help much appreciated.

———- Block 100197 at 0x0B8A56C0: 24 bytes ———-
Leak Hash: 0x84D80518 Count: 1
Call Stack:
e:2d-x-2.2\extensions\spine\extension.cpp (35): HeroesOfSteel.win32.exe!cocos2d::extension::_malloc + 0xC bytes
e:2d-x-2.2\extensions\spine\atlas.cpp (140): HeroesOfSteel.win32.exe!cocos2d::extension::mallocString + 0xC bytes
e:2d-x-2.2\extensions\spine\atlas.cpp (227): HeroesOfSteel.win32.exe!cocos2d::extension::Atlas_readAtlas + 0x9 bytes
e:2d-x-2.2\extensions\spine\atlas.cpp (304): HeroesOfSteel.win32.exe!cocos2d::extension::Atlas_readAtlasFile + 0x17 bytes
e:2d-x-2.2\heroesofsteel\classes\hosregionmapscene.cpp (256): HeroesOfSteel.win32.exe!HOSRegionMapScene::init + 0x72 bytes

even after this patch to spine:

https://github.com/cocos2d/cocos2d-x/commit/953900c759e69b9e33b256128f39593e9e85de34

Turns out, I just needed to try harder.

    {
        std::map::iterator it = mSkeletons.begin();

        while(it != mSkeletons.end())
        {
            SkeletonData* d = (SkeletonData*)it->second;
            SkeletonData_dispose(d);
            mSkeletons.erase(it++);
        }

    }



    {
        std::map::iterator it = mAtlas.begin();

        while(it != mAtlas.end())
        {
            Atlas* d = (Atlas*)it->second;
            Atlas_dispose(d);
            mAtlas.erase(it++);
        }
    }