loodakrawa / SpriterDotNet

A pure C# Spriter implementation
zlib License
220 stars 75 forks source link

Memory leak #35

Closed wighawag closed 8 years ago

wighawag commented 8 years ago

I was reading your code and saw the following line : https://github.com/loodakrawa/SpriterDotNet/blob/master/SpriterDotNet/SpriterProcessor.cs#L113

It is executed after GetBoneInfos which take a BoneInfo Array from the pool. This means that it can return before putting it back to the pool. If that happen these BoneInfos will never return to the pool causing a memory leak

loodakrawa commented 8 years ago

Nice catch! I'll fix it ASAP