Skip to content

Commit

Permalink
[win32] fix warning in NetState
Browse files Browse the repository at this point in the history
Signed-off-by: r4sas <[email protected]>
  • Loading branch information
r4sas committed May 9, 2024
1 parent 601695d commit c4bbe2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Win32/Win32NetState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,24 @@ void UnSubscribeFromEvents()
}

if (pNetEvent)
{
pNetEvent->Release();
}

if (pCPContainer)
{
pCPContainer->Release();
}

if (pNetworkListManager)
{
pNetworkListManager->Release();
}

if (pUnknown)
{
pUnknown->Release();
}

CoUninitialize();
}
Expand Down
3 changes: 2 additions & 1 deletion Win32/Win32NetState.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@
#include "Log.h"
#include "Transports.h"

class CNetworkListManagerEvent : public INetworkListManagerEvents
class CNetworkListManagerEvent final : public INetworkListManagerEvents
{
public:
CNetworkListManagerEvent() : m_ref(1) { }
~CNetworkListManagerEvent() { }

HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject)
{
Expand Down

0 comments on commit c4bbe2b

Please sign in to comment.