Re: Over-released Paragraph Style - Driving Me NUTS!
Re: Over-released Paragraph Style - Driving Me NUTS!
- Subject: Re: Over-released Paragraph Style - Driving Me NUTS!
- From: Seth Willits <email@hidden>
- Date: Mon, 23 Oct 2006 19:09:58 -0700
It just occurred to me to override dealloc instead of release!
So I did that, and I get a deallocation on this line:
[attribs
addEntriesFromDictionary:dictionaryContainingTheNSMutableParagraphStyle]
;
With the stack trace:
#0 0x00a06558 in -[NSMutableParagraphStyleHACK dealloc] at CodeCog.m:103
#1 0x9373ec14 in -[NSParagraphStyle release]
#2 0x907d0a48 in CFDictionarySetValue
#3 0x929424a4 in -[NSCFDictionary setObject:forKey:]
#4 0x92952e2c in -[NSMutableDictionary addEntriesFromDictionary:]
And then sure enough, a little after that:
*** Selector 'retain' sent to dealloced instance 0x151ac300 of class
NSMutableParagraphStyleHACK.
Well that makes it a little more interesting, but still doesn't help
much because release is always sent then, so the extra release is
still coming before that.
<sigh>....
--
Seth Willits
_______________________________________________
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