On Mon, Nov 2, 2009 at 8:20 AM, Michael Ash <[email protected]> wrote: > Watch out! The 'once' variable must be declared static as well. > Without it, if you're unlucky to get a zero-filled 'once' every time > through, this call will appear to work but leak a new Foo every time > you call it.
Oops. Caveat composewindowtor, I guess. :) Thanks for catching it. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
