FROM : j o a r
DATE : Fri Apr 01 20:00:28 2005
On 1 apr 2005, at 19.52, Julian Cain wrote:
> - (void)dealloc {
> delete(_imageLeft);
> delete(_imageMiddle);
> delete(_imageRight);
> delete(_imageLeftPress);
> delete(_imageMiddlePress);
> delete(_imageRightPress);
> delete(_imageLeftRoll);
> delete(_imageMiddleRoll);
> delete(_imageRightRoll);
> delete(_badge);
> [super dealloc];
> }
I don't see the point of releasing the shared images in your instance
dealloc method. If they're not retained anywhere else, they will be
deallocated, and no longer accessible for the remaining and future
instances of your class.
j o a r
DATE : Fri Apr 01 20:00:28 2005
On 1 apr 2005, at 19.52, Julian Cain wrote:
> - (void)dealloc {
> delete(_imageLeft);
> delete(_imageMiddle);
> delete(_imageRight);
> delete(_imageLeftPress);
> delete(_imageMiddlePress);
> delete(_imageRightPress);
> delete(_imageLeftRoll);
> delete(_imageMiddleRoll);
> delete(_imageRightRoll);
> delete(_badge);
> [super dealloc];
> }
I don't see the point of releasing the shared images in your instance
dealloc method. If they're not retained anywhere else, they will be
deallocated, and no longer accessible for the remaining and future
instances of your class.
j o a r
| Related mails | Author | Date |
|---|---|---|
| Julian Cain | Apr 1, 15:30 | |
| j o a r | Apr 1, 17:06 | |
| Julian Cain | Apr 1, 18:25 | |
| daniel | Apr 1, 18:52 | |
| Julian Cain | Apr 1, 19:52 | |
| j o a r | Apr 1, 20:00 | |
| Shaun Wexler | Apr 1, 20:06 | |
| Julian Cain | Apr 1, 20:28 | |
| Will Mason | Apr 1, 20:37 | |
| Guy English | Apr 1, 20:47 | |
| daniel | Apr 1, 20:49 | |
| Sean McBride | Apr 1, 20:53 |






Cocoa mail archive

