This is a general question regarding pixmaps and garbage collection

I had a piece of code which ran roughly as follows

def on_da_configure_event(...):
    #pixmap stored in a list to become immutable
    global da_pixmap

    da_pixmap[0]=gtk.Pixmap(...)

essentially, everytime the da was reconfigured, the pixmap would be overwritten 
with a new pixmap. However, the old pixmap was never removed. Essentially the 
program would use more and more memory, until it crashed. Is this normal 
behavior?

Thanks


Peyman Askari

_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to