mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-19 01:09:58 +00:00
[win32] fix warning in NetState
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
601695dede
commit
c4bbe2bb4a
@ -73,16 +73,24 @@ void UnSubscribeFromEvents()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pNetEvent)
|
if (pNetEvent)
|
||||||
|
{
|
||||||
pNetEvent->Release();
|
pNetEvent->Release();
|
||||||
|
}
|
||||||
|
|
||||||
if (pCPContainer)
|
if (pCPContainer)
|
||||||
|
{
|
||||||
pCPContainer->Release();
|
pCPContainer->Release();
|
||||||
|
}
|
||||||
|
|
||||||
if (pNetworkListManager)
|
if (pNetworkListManager)
|
||||||
|
{
|
||||||
pNetworkListManager->Release();
|
pNetworkListManager->Release();
|
||||||
|
}
|
||||||
|
|
||||||
if (pUnknown)
|
if (pUnknown)
|
||||||
|
{
|
||||||
pUnknown->Release();
|
pUnknown->Release();
|
||||||
|
}
|
||||||
|
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,11 @@
|
|||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "Transports.h"
|
#include "Transports.h"
|
||||||
|
|
||||||
class CNetworkListManagerEvent : public INetworkListManagerEvents
|
class CNetworkListManagerEvent final : public INetworkListManagerEvents
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CNetworkListManagerEvent() : m_ref(1) { }
|
CNetworkListManagerEvent() : m_ref(1) { }
|
||||||
|
~CNetworkListManagerEvent() { }
|
||||||
|
|
||||||
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject)
|
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void **ppvObject)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user