From 15bd1f3f5d2827aab2c1acf2ca7ea19b8fbdfdd1 Mon Sep 17 00:00:00 2001 From: "smfr%smfr.org" Date: Sun, 24 Jul 2005 23:03:59 +0000 Subject: [PATCH] Add a comment about ref cycles. --- camino/src/download/ProgressDlgController.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camino/src/download/ProgressDlgController.mm b/camino/src/download/ProgressDlgController.mm index 9b8fbaff48a..469d7b918bd 100644 --- a/camino/src/download/ProgressDlgController.mm +++ b/camino/src/download/ProgressDlgController.mm @@ -512,6 +512,8 @@ static id gSharedProgressController = nil; - (void)setupDownloadTimer { [self killDownloadTimer]; + // note that this sets up a retain cycle between |self| and the timer, + // which has to be broken out of band, before we'll be dealloc'd. mDownloadTimer = [[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(setDownloadProgress:)