Since you never sent any of those objects an autorelease message, they will NOT be released when the pool drains. You leaked all three objects.
You should use [myOwnPool drain] btw unless you know for sure you will never reuse any of that code in Mac OS with garbage collection. On iPhone, release & drain are equivalent though... for now anyway.
|