Fix an apparent leak: We put the download-started date into our dictionary under the download's identifier, but then tried to remove the date from the dictionary under the download itself. Thus, we leaked both the date and the copy of the identifier.
authorPeter Hosey <hg@boredzo.org>
Thu Jul 02 06:30:46 2009 -0700 (2009-07-02)
changeset 422522ffbf7ae378
parent 4224 137d42d709ed
child 4226 a6eb28fcc0b7
Fix an apparent leak: We put the download-started date into our dictionary under the download's identifier, but then tried to remove the date from the dictionary under the download itself. Thus, we leaked both the date and the copy of the identifier.
Extras/GrowlSafari/GrowlSafari.m
     1.1 --- a/Extras/GrowlSafari/GrowlSafari.m	Thu Jul 02 03:27:39 2009 -0700
     1.2 +++ b/Extras/GrowlSafari/GrowlSafari.m	Thu Jul 02 06:30:46 2009 -0700
     1.3 @@ -104,7 +104,7 @@
     1.4  }
     1.5  
     1.6  static void setDownloadFinished(id dl) {
     1.7 -	[dates removeObjectForKey:dl];
     1.8 +	[dates removeObjectForKey:[dl identifier]];
     1.9  }
    1.10  
    1.11  @implementation GrowlSafari