4333: memory leak in 3.2

svn: r16093
This commit is contained in:
Benny Malengier 2010-10-31 08:55:42 +00:00
parent 1baf7070a3
commit e80a74d72a
2 changed files with 2 additions and 3 deletions

View File

@ -35,6 +35,7 @@ from gen.ggettext import gettext as _
# GTK/Gnome modules # GTK/Gnome modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
import gobject
import gtk import gtk
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -436,7 +437,6 @@ class EditName(EditSecondary):
data must be saved, and also bug 1892 occurs on reopening of the editor. data must be saved, and also bug 1892 occurs on reopening of the editor.
""" """
# 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().
print 'cleaning up'
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) EditSecondary._cleanup_on_exit(self)

View File

@ -117,8 +117,7 @@ class EditSecondary(ManagedWindow.ManagedWindow, DbGUIElement):
self.uistate = None self.uistate = None
self.obj = None self.obj = None
self.db = None self.db = None
if self.callman: self.callman.database = None
self.callman.database = None
self.callman = None self.callman = None
def define_ok_button(self,button,function): def define_ok_button(self,button,function):