[ myWorkSpace openURL: myurl ] is leaking. Why??
[ 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