Leak in NSSavePanel
Leak in NSSavePanel
- Subject: Leak in NSSavePanel
- From: Jelle Vandebeeck <email@hidden>
- Date: Wed, 25 Jun 2008 00:55:18 +0200
When I try to call the NSSavePanel, I always receive some memory leaks
on it. I have no idea if they are bad or not so bad... I just can't
find a decent tutorial on the Instruments tool.
This is the code that generates the memory leak from time to time:
NSSavePanel *savePanel = [NSSavePanel savePanel];
[savePanel setRequiredFileType:extention];
[savePanel setMessage:title];
[savePanel setExtensionHidden:YES];
It's the [NSSavePanel savePanel that gets the leak... I know the
NSSavePanel is a singleton, so it should always use the same instance.
Is that the problem when I try to call it multiple times in my
application?
Thnx for helping :)
Jelle
_______________________________________________
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