4352: more memory leak problems - reporef

svn: r16154
This commit is contained in:
Benny Malengier 2010-11-07 08:43:04 +00:00
parent 44954b02bf
commit 20f1b22cef

View File

@ -76,6 +76,7 @@ class EditRepoRef(EditReference):
notebook.remove_page(0) notebook.remove_page(0)
self.primtab = RefTab(self.dbstate, self.uistate, self.track, self.primtab = RefTab(self.dbstate, self.uistate, self.track,
_('_General'), tblref) _('_General'), tblref)
self.track_ref_for_deletion("primtab")
def _connect_signals(self): def _connect_signals(self):
self.define_ok_button(self.top.get_object('ok'),self.ok_clicked) self.define_ok_button(self.top.get_object('ok'),self.ok_clicked)
@ -146,33 +147,34 @@ class EditRepoRef(EditReference):
self._add_tab(notebook_src, self.primtab) self._add_tab(notebook_src, self.primtab)
self._add_tab(notebook_ref, self.reftab) self._add_tab(notebook_ref, self.reftab)
self.note_tab = self._add_tab( self.note_tab = NoteTab(self.dbstate, self.uistate, self.track,
notebook_src, self.source.get_note_list(),
NoteTab(self.dbstate, self.uistate, self.track, notetype=NoteType.REPO)
self.source.get_note_list(), self._add_tab(notebook_src, self.note_tab)
notetype=NoteType.REPO)) self.track_ref_for_deletion("note_tab")
self.comment_tab = self._add_tab( self.comment_tab = NoteTab(self.dbstate, self.uistate, self.track,
notebook_ref, self.source_ref.get_note_list(),
NoteTab(self.dbstate, self.uistate, self.track, notetype=NoteType.REPOREF)
self.source_ref.get_note_list(), self._add_tab(notebook_ref, self.comment_tab)
notetype=NoteType.REPOREF)) self.track_ref_for_deletion("comment_tab")
self.address_tab = self._add_tab( self.address_tab = AddrEmbedList(self.dbstate, self.uistate, self.track,
notebook_src, self.source.get_address_list())
AddrEmbedList(self.dbstate,self.uistate,self.track, self._add_tab(notebook_src, self.address_tab)
self.source.get_address_list())) self.track_ref_for_deletion("address_tab")
self.web_list = self._add_tab( self.web_list = WebEmbedList(self.dbstate, self.uistate, self.track,
notebook_src, self.source.get_url_list())
WebEmbedList(self.dbstate,self.uistate,self.track, self._add_tab(notebook_src, self.web_list)
self.source.get_url_list())) self.track_ref_for_deletion("web_list")
self.backref_tab = self._add_tab( self.backref_tab = SourceBackRefList(self.dbstate, self.uistate,
notebook_src, self.track,
SourceBackRefList(self.dbstate, self.uistate, self.track, self.db.find_backlink_handles(self.source.handle),
self.db.find_backlink_handles(self.source.handle), self.enable_warnbox)
self.enable_warnbox)) self._add_tab(notebook_src, self.backref_tab)
self.track_ref_for_deletion("backref_tab")
self._setup_notebook_tabs( notebook_src) self._setup_notebook_tabs( notebook_src)
self._setup_notebook_tabs( notebook_ref) self._setup_notebook_tabs( notebook_ref)