Fix memory leak when drawing back button