Pygtk leaks memory when using signals
Be careful when using connect(): gobject will keep a reference to the callback, preventing your object to be destroyed. You must call disconnect() to be sure the memory is freed.
It doesn't matter when you have only a few objects, but when you are creating thousands of objects...
@see: http://stackoverflow.com/questions/1364923/how-to-connect-to-a-gobject-signal-in-python-without-it-keeping-a-reference-to-t
It doesn't matter when you have only a few objects, but when you are creating thousands of objects...
@see: http://stackoverflow.com/questions/1364923/how-to-connect-to-a-gobject-signal-in-python-without-it-keeping-a-reference-to-t
Comments