Do not create the image in the paint() method. In the above method you should only have what is in your line #24.
Do not create the image in the paint() method. In the above method you should only have what is in your line #24.
And it is currently leaking the painter "paint". Just create it on the stack.
Cheers,
_
Bookmarks