void ChatDialog::OnFinalMessage(HWND hWnd) { RemoveObserver(); WindowImplBase::OnFinalMessage(hWnd); delete this; }
int SSDP::AddObserver(SSDPObserver* observer){ RemoveObserver(observer); mObservers.push_back(observer); return 0; }
YSkinWindow::~YSkinWindow() { RemoveObserver(); }
CShareWin::~CShareWin() { RemoveObserver(); }
SupplyDropBehavior::~SupplyDropBehavior() { RemoveObserver(this->zSoundHandler); }
int SocketServer::AddObserver(SocketServerObserver* observer){ RemoveObserver(observer); mObservers.push_back(observer); return 0; }
CMediaWin::~CMediaWin() { RemoveObserver(); }