Dont free the canvas if it has not been created.