NSWindowController releases the nib items for you, so we don't have to, so these extra retains are wrong.

This commit is contained in:
smfr%smfr.org 2005-07-25 15:59:12 +00:00
Родитель 8df98a2b1f
Коммит 0091a72ca7
1 изменённых файлов: 1 добавлений и 10 удалений

Просмотреть файл

@ -566,16 +566,6 @@ enum BWCOpenDest {
[mThrobberImages release];
[mURLFieldEditor release];
// release top-level nib items (balancing the retain at nib loading)
[mPageMenu release];
[mImageMenu release];
[mInputMenu release];
[mLinkMenu release];
[mMailToLinkMenu release];
[mImageLinkMenu release];
[mImageMailToLinkMenu release];
[mTabMenu release];
[super dealloc];
}
@ -698,6 +688,7 @@ enum BWCOpenDest {
pref->RegisterCallback(gTabBarVisiblePref, TabBarVisiblePrefChangedCallback, self);
}
// remove the dummy tab view
[mTabBrowser removeTabViewItem:[mTabBrowser tabViewItemAtIndex:0]];
// create ourselves a new tab and fill it with the appropriate content. If we