зеркало из https://github.com/mozilla/pjs.git
Remove the HistoryDataSource instance from the nib, and instantiate it in code so that we can more clearly release it, fixing history leaks. No bug.
This commit is contained in:
Родитель
51fbf70b61
Коммит
5c785c2c97
|
@ -3,7 +3,7 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>IBDocumentLocation</key>
|
<key>IBDocumentLocation</key>
|
||||||
<string>19 33 506 368 0 0 1600 1002 </string>
|
<string>19 32 506 368 0 0 1600 1002 </string>
|
||||||
<key>IBEditorPositions</key>
|
<key>IBEditorPositions</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>116</key>
|
<key>116</key>
|
||||||
|
@ -32,6 +32,6 @@
|
||||||
<key>IBFramework Version</key>
|
<key>IBFramework Version</key>
|
||||||
<string>364.0</string>
|
<string>364.0</string>
|
||||||
<key>IBSystem Version</key>
|
<key>IBSystem Version</key>
|
||||||
<string>7S215</string>
|
<string>7U16</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Двоичные данные
camino/resources/localized/English.lproj/BookmarksEditing.nib/keyedobjects.nib
сгенерированный
Двоичные данные
camino/resources/localized/English.lproj/BookmarksEditing.nib/keyedobjects.nib
сгенерированный
Двоичный файл не отображается.
|
@ -109,6 +109,8 @@
|
||||||
BookmarkFolder* mRootBookmarks;
|
BookmarkFolder* mRootBookmarks;
|
||||||
NSArray* mSearchResultArray;
|
NSArray* mSearchResultArray;
|
||||||
int mOpenActionFlag;
|
int mOpenActionFlag;
|
||||||
|
|
||||||
|
HistoryDataSource* mHistoryDataSource;
|
||||||
}
|
}
|
||||||
|
|
||||||
+ (NSAttributedString*)greyStringWithItemCount:(int)itemCount;
|
+ (NSAttributedString*)greyStringWithItemCount:(int)itemCount;
|
||||||
|
|
|
@ -169,6 +169,8 @@ static const int kDisabledQuicksearchPopupItemTag = 9999;
|
||||||
[mBookmarksHostView release];
|
[mBookmarksHostView release];
|
||||||
[mHistoryHostView release];
|
[mHistoryHostView release];
|
||||||
|
|
||||||
|
[mHistoryDataSource release];
|
||||||
|
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,6 +204,8 @@ static const int kDisabledQuicksearchPopupItemTag = 9999;
|
||||||
[self setupAppearanceOfTableView:mHistoryOutlineView];
|
[self setupAppearanceOfTableView:mHistoryOutlineView];
|
||||||
|
|
||||||
// set up history outliner
|
// set up history outliner
|
||||||
|
mHistoryDataSource = [[HistoryDataSource alloc] init];
|
||||||
|
[mHistoryOutlineView setDataSource:mHistoryDataSource];
|
||||||
[mHistoryOutlineViewDelegate setBrowserWindowController:mBrowserWindowController];
|
[mHistoryOutlineViewDelegate setBrowserWindowController:mBrowserWindowController];
|
||||||
[mHistoryOutlineView setTarget:mHistoryOutlineViewDelegate];
|
[mHistoryOutlineView setTarget:mHistoryOutlineViewDelegate];
|
||||||
[mHistoryOutlineView setDoubleAction:@selector(openHistoryItem:)];
|
[mHistoryOutlineView setDoubleAction:@selector(openHistoryItem:)];
|
||||||
|
|
Загрузка…
Ссылка в новой задаче