NSTextView memory leak
NSTextView memory leak
- Subject: NSTextView memory leak
- From: Keith Wilson <email@hidden>
- Date: Mon, 20 Mar 2006 04:34:44 +1100
If I create an NSTextView as follows:
textView = [[NSTextView alloc] initWithFrame:rect];
[textView setString:aString];
[textView setFont:aFont];
then MallocDebug reports 88 bytes memory leak.
But if I do the setFont first, eg:
textView = [[NSTextView alloc] initWithFrame:rect];
[textView setFont:aFont];
[textView setString:aString];
then MallocDebug reports no leak.
Why? Both options look legal to me.
Keith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden