fix leak test, idletask/strokemap code refactoring
authorMartin Renold <martinxyz@gmx.ch>
Sun, 25 Oct 2009 12:09:07 +0000 (13:09 +0100)
committerMartin Renold <martinxyz@gmx.ch>
Sun, 25 Oct 2009 12:19:53 +0000 (13:19 +0100)
commit3eb39b13cd5abe802fa1389dfd53f347b5a29248
treea7bc87dcf68ba646a6b73b89191bd01a13b29d45
parentbbcf9dc9e6e02bece5b318db54aa42ab6dc9f1d1
fix leak test, idletask/strokemap code refactoring

The idle handler was leaking memory, because it added a callback closure
to the gtk idle handler that was never called during the test. That
closure held a reference to the surface, which in turn was never freed.

No impact when running with GUI, but it's fixed now anyway.
lib/idletask.py [new file with mode: 0644]
lib/strokemap.py
tests/test_mypaintlib.py
tests/test_performance.py