Fix a variety of memory leaks around the PeopleView and model

svn: r12791
This commit is contained in:
Gary Burton
2009-07-12 19:45:17 +00:00
parent d45f5970fb
commit 6c855de785
4 changed files with 34 additions and 10 deletions

View File

@@ -1,6 +1,7 @@
# This file is derived from the GPL program "PyPE"
#
# Copyright (C) 2003-2006 Josiah Carlson
# Copyright (C) 2009 Gary Burton
#
# 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
@@ -144,3 +145,9 @@ class LRU(object):
Return all items
"""
return [data[0] for data in self.iteritems()]
def clear(self):
"""
Empties LRU
"""
self.data.clear()