wxObjectDataPtr::operator=() didn't handle self-assignment correctly, i.e. could delete the object when doing "x = x". Fix this by incrementing the reference count before decrementing it on possibly the same object to ensure that it never reaches 0.
wxObjectDataPtr::operator=() didn't handle self-assignment correctly, i.e. could delete the object when doing "x = x". Fix this by incrementing the reference count before decrementing it on possibly the same object to ensure that it never reaches 0.