Fix memory leak in DbManager
svn: r12063
This commit is contained in:
parent
8a5ac4f03c
commit
df3e8413d1
@ -3,6 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||||
# Copyright (C) 2009 Brian G. Matherly
|
# Copyright (C) 2009 Brian G. Matherly
|
||||||
|
# Copyright (C) 2009 Gary Burton
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -568,10 +569,14 @@ class DbManager(CLIDbManager):
|
|||||||
continue
|
continue
|
||||||
if node:
|
if node:
|
||||||
self.top.destroy()
|
self.top.destroy()
|
||||||
|
del self.selection
|
||||||
|
del self.name_renderer
|
||||||
return (store.get_value(node, PATH_COL),
|
return (store.get_value(node, PATH_COL),
|
||||||
store.get_value(node, NAME_COL))
|
store.get_value(node, NAME_COL))
|
||||||
else:
|
else:
|
||||||
self.top.destroy()
|
self.top.destroy()
|
||||||
|
del self.selection
|
||||||
|
del self.name_renderer
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def __ask_to_break_lock(self, store, node):
|
def __ask_to_break_lock(self, store, node):
|
||||||
|
Loading…
Reference in New Issue
Block a user