Another Ignorant Question

in the shutdown method of the example project what is the purpose of the line:

if (helloWorldWindow != 0) delete helloWorldWindow;


doesn’t all the memory get freed when the application is quit anyway?

what!? You should never ever leave any objects in memory at shutdown - otherwise you’ll never know when there’s a real memory leak!

how would you be able to tell if there’s a memory leak either way?

In windows it dumps out any unfreed memory before it quits. Check out the juce_UseDebuggingNewOperator macro