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: Removing Applications from the Dock Programmatically




On Aug 27, 2008, at 12:05 PM, Sherm Pendley wrote:

On Wed, Aug 27, 2008 at 1:48 PM, Kevin Kicklighter
<email@hidden> wrote:

NSDictionary *theError = [[[NSDictionary alloc] init] autorelease];

              [quitScript executeAndReturnError:&theError];
      }

That still leaks the dictionary you created. Didn't you get my message about that? You should do this instead:

  NSDictionary *theError = nil;
  [quitScript executeAndReturnError: &theError];

sherm--


It's autoreleased - how could that leak?

Ken

--
Ken Worley
Software Engineer, Tiberius, Inc.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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/email@hidden

This email sent to email@hidden
References: 
 >Removing Applications from the Dock Programmatically (From: Kevin Kicklighter <email@hidden>)
 >Re: Removing Applications from the Dock Programmatically (From: Graff <email@hidden>)
 >Re: Removing Applications from the Dock Programmatically (From: Negm-Awad Amin <email@hidden>)
 >Re: Removing Applications from the Dock Programmatically (From: Kevin Kicklighter <email@hidden>)
 >Re: Removing Applications from the Dock Programmatically (From: "Sherm Pendley" <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.