4333: memory leak in 3.2
svn: r16091
This commit is contained in:
parent
4dd74a2055
commit
e59b7276b4
@ -1059,7 +1059,7 @@ class DbBsddb(DbBsddbRead, DbWriteBase, UpdateCallback):
|
|||||||
self.env = None
|
self.env = None
|
||||||
self.metadata = None
|
self.metadata = None
|
||||||
self.db_is_open = False
|
self.db_is_open = False
|
||||||
self.surname_lis = None
|
self.surname_list = None
|
||||||
|
|
||||||
DbBsddbRead.close(self)
|
DbBsddbRead.close(self)
|
||||||
|
|
||||||
|
@ -457,3 +457,4 @@ class EditName(EditSecondary):
|
|||||||
# can't use group_over, see Note in gen/lib/name/Name.set_group_as().
|
# can't use group_over, see Note in gen/lib/name/Name.set_group_as().
|
||||||
if not self.group_as.obj.get_editable():
|
if not self.group_as.obj.get_editable():
|
||||||
self.obj.set_group_as("")
|
self.obj.set_group_as("")
|
||||||
|
EditSecondary._cleanup_on_exit(self)
|
@ -116,9 +116,10 @@ class EditSecondary(ManagedWindow.ManagedWindow, DbGUIElement):
|
|||||||
self.__tabs = None
|
self.__tabs = None
|
||||||
self.dbstate = None
|
self.dbstate = None
|
||||||
self.uistate = None
|
self.uistate = None
|
||||||
self.obj = obj
|
self.obj = None
|
||||||
self.db = None
|
self.db = None
|
||||||
self.callman.database = None
|
if self.callman:
|
||||||
|
self.callman.database = None
|
||||||
self.callman = None
|
self.callman = None
|
||||||
|
|
||||||
def define_ok_button(self,button,function):
|
def define_ok_button(self,button,function):
|
||||||
@ -141,8 +142,8 @@ class EditSecondary(ManagedWindow.ManagedWindow, DbGUIElement):
|
|||||||
|
|
||||||
def close(self, *obj):
|
def close(self, *obj):
|
||||||
self._cleanup_db_connects()
|
self._cleanup_db_connects()
|
||||||
self._cleanup_on_exit()
|
|
||||||
ManagedWindow.ManagedWindow.close(self)
|
ManagedWindow.ManagedWindow.close(self)
|
||||||
|
self._cleanup_on_exit()
|
||||||
|
|
||||||
def _cleanup_db_connects(self):
|
def _cleanup_db_connects(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user