Hi Jules,
I have a ValueTree with a binary in it, if I use it as:
MemoryBlock* pBlock = myvar.getBinaryData();
it works but leaves a leaked MemoryBlock object on shutdown. So I thought, ScopedPointer to the rescue :)
ScopedPointer<MemoryBlock> pBlock(myvar.getBinaryData());
but that crashes when ScopedPointer exists scope, of course.