fix memory leak

fix a really cool memory leak from property descriptor value changed
delegates, would happen if you closed parent window without setting
selected object to null first, which is by no means rare