+2006-08-25 Brady Eidson <beidson@apple.com>
+
+ Reviewed by Tim Hatcher
+
+ Fixed up some leaks on [WebIconDatabase init]
+
+ * Misc/WebIconDatabase.m:
+ (-[WebIconDatabase init]):
+
2006-08-24 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
}
[self _createFileDatabase];
+
+ _private->iconURLToIcons = [[NSMutableDictionary alloc] init];
+ _private->iconURLToExtraRetainCount = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
+ _private->pageURLToRetainCount = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
+ _private->iconsToEraseWithURLs = [[NSMutableSet alloc] init];
+ _private->iconsToSaveWithURLs = [[NSMutableSet alloc] init];
+ _private->iconURLsWithNoIcons = [[NSMutableSet alloc] init];
+ _private->iconURLsBoundDuringPrivateBrowsing = [[NSMutableSet alloc] init];
+ _private->pageURLsBoundDuringPrivateBrowsing = [[NSMutableSet alloc] init];
+ _private->privateBrowsingEnabled = [[WebPreferences standardPreferences] privateBrowsingEnabled];
+
[self _loadIconDictionaries];
#ifdef ICONDEBUG
[self _convertToWebCoreFormat];
#endif
-
- _private->iconURLToIcons = [[NSMutableDictionary alloc] init];
- _private->iconURLToExtraRetainCount = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
- _private->pageURLToRetainCount = CFDictionaryCreateMutable(NULL, 0, &kCFTypeDictionaryKeyCallBacks, NULL);
- _private->iconsToEraseWithURLs = [[NSMutableSet alloc] init];
- _private->iconsToSaveWithURLs = [[NSMutableSet alloc] init];
- _private->iconURLsWithNoIcons = [[NSMutableSet alloc] init];
- _private->iconURLsBoundDuringPrivateBrowsing = [[NSMutableSet alloc] init];
- _private->pageURLsBoundDuringPrivateBrowsing = [[NSMutableSet alloc] init];
- _private->privateBrowsingEnabled = [[WebPreferences standardPreferences] privateBrowsingEnabled];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(_applicationWillTerminate:)