I had problems with a few string leaking without an auto release pool during static initialization and firing up some threads.
If I add an auto release pool to juce_posix_SharedCode.h, setCurrentThreadName like this:
void Thread::setCurrentThreadName (const String& name)
#if JUCE_IOS || (JUCE_MAC && defined (MAC_OS_X_VERSION_10_5) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
[[NSThread currentThread] setName: juceStringToNS (name)];
prctl (PR_SET_NAME, name.toUTF8().getAddress(), 0, 0, 0);
the problem goes away. Does it make sense to apply this change to Juce?