Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GetFlavorType leaking a CFStringRef (16 bytes)




On 8 May 2006, at 14:14, Douglas Norton wrote:

int main(int argc, char* argv[])
	{
	DoLeakTest();

    RunApplicationEventLoop();
    return 0;
	}


Douglas,

I presume you have seen this in real code, not just this sample? i.e Perhaps doing Drag Manager stuff outside of an eventLoop is bad.

Perhaps the string is an autoreleased NSString that won't release since there is no autorelease pool.

Does it still leak if you wrap an autorelease pool around your call to DoLeaktest.

Does it leak once per call to GetFlavorType, or just one object for the lifetime of your app. I.e are you sure it isn't a cached string in the drag manager

FYI - I find that ObjectAlloc is much better tool for CF/NS leak detection than MallocDebug.


Matt _______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >GetFlavorType leaking a CFStringRef (16 bytes) (From: Douglas Norton <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.