dpvoice: Decrement reference count in Release functions.

This commit is contained in:
Alex Henrie 2014-12-27 23:35:16 -07:00 committed by Alexandre Julliard
parent c134466224
commit 8479229ae8
2 changed files with 4 additions and 3 deletions

View File

@ -83,7 +83,7 @@ static ULONG WINAPI dpvclient_AddRef(IDirectPlayVoiceClient *iface)
static ULONG WINAPI dpvclient_Release(IDirectPlayVoiceClient *iface)
{
IDirectPlayVoiceClientImpl *This = impl_from_IDirectPlayVoiceClient(iface);
ULONG ref = InterlockedIncrement(&This->ref);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%u\n", This, ref);
@ -270,7 +270,7 @@ static ULONG WINAPI dpvtest_AddRef(IDirectPlayVoiceTest *iface)
static ULONG WINAPI dpvtest_Release(IDirectPlayVoiceTest *iface)
{
IDirectPlayVoiceTestImpl *This = impl_from_IDirectPlayVoiceTest(iface);
ULONG ref = InterlockedIncrement(&This->ref);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%u\n", This, ref);

View File

@ -68,10 +68,11 @@ static ULONG WINAPI dpvserver_AddRef(IDirectPlayVoiceServer *iface)
return ref;
}
static ULONG WINAPI dpvserver_Release(IDirectPlayVoiceServer *iface)
{
IDirectPlayVoiceServerImpl *This = impl_from_IDirectPlayVoiceServer(iface);
ULONG ref = InterlockedIncrement(&This->ref);
ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%u\n", This, ref);