Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/svgcard.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-08-31 12:10:53 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-08-31 12:10:53 (GMT)
commitcdd75c7020bbd5d664a258a78a4255b539c4c661 (patch)
treec070fca8f62726be8cbe9e7372866129418e2989 /svgcard.py
parent3749fd7c276a9c0ce85bfa038fe4fd280c0ee6b9 (diff)
Fix for high memory consumption #3106
After deleting a pixbuf you have to call the garbage collector manualy to free the memory.
Diffstat (limited to 'svgcard.py')
-rwxr-xr-xsvgcard.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/svgcard.py b/svgcard.py
index a20b0ff..6ba56b4 100755
--- a/svgcard.py
+++ b/svgcard.py
@@ -212,6 +212,7 @@ class SvgCard(gtk.DrawingArea):
self.queue_draw()
while gtk.events_pending():
gtk.main_iteration()
+ gc.collect()
def flop(self):
self.current_pixbuf = self.build_face('back')