diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | linkbutton.py | 4 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,6 @@ +* fixed memory consuption when creating shared links + by calling the garbage collector (erikos) + 45 * use json for storing the history and the shared diff --git a/linkbutton.py b/linkbutton.py index 5716812..8b2e478 100644 --- a/linkbutton.py +++ b/linkbutton.py @@ -21,6 +21,7 @@ import gobject from gettext import gettext as _ import rsvg import re +import gc from sugar.graphics.palette import Palette from sugar.graphics.tray import TrayButton @@ -67,6 +68,9 @@ class LinkButton(TrayButton, gobject.GObject): img.set_from_pixbuf(pixbuf_bg) self.set_icon_widget(img) img.show() + del pixbuf + del pixbuf_bg + gc.collect() def _read_link_background(self, filename, fill_color, stroke_color): icon_file = open(filename, 'r') |