4333: memory leak in 3.2

svn: r16091
This commit is contained in:
Benny Malengier 2010-10-31 08:36:03 +00:00
parent 4dd74a2055
commit e59b7276b4
3 changed files with 6 additions and 4 deletions

View File

@ -1059,7 +1059,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
self.env = None
self.metadata = None
self.db_is_open = False
self.surname_lis = None
self.surname_list = None
DbBsddbRead.close(self)

View File

@ -457,3 +457,4 @@ class EditName(EditSecondary):
# can't use group_over, see Note in gen/lib/name/Name.set_group_as().
if not self.group_as.obj.get_editable():
self.obj.set_group_as("")
EditSecondary._cleanup_on_exit(self)

View File

@ -116,9 +116,10 @@ class EditSecondary(ManagedWindow.ManagedWindow, DbGUIElement):
self.__tabs = None
self.dbstate = None
self.uistate = None
self.obj = obj
self.obj = None
self.db = None
self.callman.database = None
if self.callman:
self.callman.database = None
self.callman = None
def define_ok_button(self,button,function):
@ -141,8 +142,8 @@ class EditSecondary(ManagedWindow.ManagedWindow, DbGUIElement):
def close(self, *obj):
self._cleanup_db_connects()
self._cleanup_on_exit()
ManagedWindow.ManagedWindow.close(self)
self._cleanup_on_exit()
def _cleanup_db_connects(self):
"""