removed a memory leak from the bitmap source