File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,14 @@ - (void)downloadDidFinish:(NSURLDownload *)download
180
180
- (void )download : (NSURLDownload *)download didFailWithError : (NSError *)error
181
181
{
182
182
CFRelease (download);
183
+ if (downloadFilename)
184
+ {
183
185
#if MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4
184
- [[NSFileManager defaultManager ] removeFileAtPath: downloadFilename handler: nil ];
186
+ [[NSFileManager defaultManager ] removeFileAtPath: downloadFilename handler: nil ];
185
187
#else
186
- [[NSFileManager defaultManager ] removeItemAtPath: downloadFilename error: NULL ];
188
+ [[NSFileManager defaultManager ] removeItemAtPath: downloadFilename error: NULL ];
187
189
#endif
190
+ }
188
191
[downloadFilename release ];
189
192
downloadFilename = nil ;
190
193
You can’t perform that action at this time.
0 commit comments