View Single Post
Old 02-25-2020, 04:24 PM   #21
olilarkin
Human being with feelings
 
Join Date: Apr 2009
Location: UK
Posts: 1,213
Default

been doing some investigation here https://github.com/iPlug2/iPlug2/issues/463

I've learnt its very important to get _CrtDumpMemoryLeaks(); in the right place!

There is a bunch of heap-allocated stuff that gets stored statically in IGraphics using a class we have called StaticStorage<>. It's not till all those have been destructed that _CrtDumpMemoryLeaks() can be called.

Bad news is with skia it still prints quite a lot of leaks, but i am wondering if there are similar things within skia that might not be getting dealloc'd by the time of calling _CrtDumpMemoryLeaks()
__________________
VirtualCZ | pMix | Endless Series | iPlug2 | Linkedin | Facebook
Available for Audio Dev tuition via Skype (IPlug/JUCE/C++)
olilarkin is offline   Reply With Quote