advertisement

Article:
  Building a Scratch Pad with Cocoa
Subject:   Memory leak?
Date:   2001-12-04 09:16:39
From:   retro
I notice in the final version, that you retain the path but you never release it. Is this a problem? I know that it is good practice to always balance retains with releases, and it seems that there should be a dealloc method for this subclass in order to release the memory.


What will happen to this memory if you simply quit the program? Is there some kind of global memory sweep that happens at the time of program termination? Just curious on this one.


1 to 1 of 1
  1. Michael Beam photo Memory leak?
    2001-12-04 23:04:11  Michael Beam | O'Reilly Author [View]

1 to 1 of 1