fix memory leak on draw selection rectangle on desktop #397