diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-09 12:09:34 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-10-09 12:09:34 +0200 |
| commit | ff9de68c6430ff296e0781a8cee1122e89785db5 (patch) | |
| tree | 9481c824609dd6777dc3470c42c8e43c0b78d5ff /UpdateManager | |
| parent | 62568bc42e8c29d608d952ebe51d2a8ba6ba0b8d (diff) | |
| download | python-apt-ff9de68c6430ff296e0781a8cee1122e89785db5.tar.gz | |
* UpdateManager/UpdateManager.py:
- do not create a new "MyCache()" on each initCache() but use
cache.open() instead. This fixes a memory leak (lp: 43096)
Diffstat (limited to 'UpdateManager')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index e659843a..af1a1b8e 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -891,7 +891,11 @@ class UpdateManager(SimpleGladeApp): self.progressbar_cache, self.label_cache, self.window_main) - self.cache = MyCache(progress) + if hasattr(self, "cache"): + self.cache.open(progress) + self.cache._initDepCache() + else: + self.cache = MyCache(progress) except AssertionError: # we assert a clean cache msg=("<big><b>%s</b></big>\n\n%s"% \ |
