fix memory leak for draw element of svg background.