• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[ myWorkSpace openURL: myurl ] is leaking. Why??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ myWorkSpace openURL: myurl ] is leaking. Why??


  • Subject: [ myWorkSpace openURL: myurl ] is leaking. Why??
  • From: Parimal Das <email@hidden>
  • Date: Fri, 11 Dec 2009 13:25:43 +0530

Hi all,

This is a very simple code.  And it is always leaking.

-(void)awakeFromNib {

    NSAutoreleasePool* pool =  [ [NSAutoreleasePool alloc ] init ];

    NSWorkspace* ws = [NSWorkspace sharedWorkspace];

    NSString* tempUrl = @"http://www.google.com";;

    NSURL* myurl = [NSURL URLWithString:tempUrl];

   * [ws openURL:myurl]; *     *// Here NSCFDictionary is leaking 64 bytes
twice. (shown by instruments)*

    [pool release];

}

leaks shows:
Process 1605: 8513 nodes malloced for 1063 KB
Process 1605: 2 leaks for 128 total leaked bytes.
Leak: 0x13b9b0  size=64    instance of 'NSCFDictionary', type ObjC,
implemented in Foundation
    0xa0618740 0x01001080 0x00000000 0x00000000     @.a.............
    0x00000000 0x00000003 0x00000001 0x00000000     ................
    0x00000000 0x00000014 0xa1b1c1d3 0x00000000     ................
    0x00000000 0x00000000 0x00000000 0x00000000     ................
Leak: 0x141220  size=64    instance of 'NSCFDictionary', type ObjC,
implemented in Foundation
    0xa0618740 0x01001080 0x00000000 0x00000000     @.a.............
    0x00000000 0x00000003 0x00000001 0x00000000     ................
    0x00000000 0x00000014 0xa1b1c1d3 0x00000000     ................
    0x00000000 0x00000000 0x00000000 0x00000000     ................

I must be missing something here.
Can anyone point what is wrong here.

Advanced thanks.
-Parimal Das
_______________________________________________

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Binding an Array of Dictionaries
  • Next by Date: Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
  • Previous by thread: Re: Binding an Array of Dictionaries
  • Next by thread: Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
  • Index(es):
    • Date
    • Thread