3412922Fix for: When a DispatchEvent is created with a COM object, the COM object is never released totally, and the destructor function is never called

This commit is contained in:
clay_shooter
2011-10-02 15:51:19 +00:00
parent 003671fb90
commit e5652e3b75
4 changed files with 12 additions and 1 deletions

View File

@@ -100,6 +100,8 @@ EventProxy::~EventProxy()
void EventProxy::Disconnect() {
if (connected) {
// insure we don't call Unadvise twice
connected = 0;
pCP->Unadvise(dwEventCookie);
}
}