summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMykola Vshyvkov <mvshyvk@gmail.com>2022-12-26 20:41:29 +0200
committerMykola Vshyvkov <mvshyvk@gmail.com>2022-12-26 20:41:29 +0200
commit9a40bc945b416dfda6615918255d7fdedaa0b9b0 (patch)
tree4a75a872738c48b6aaa4497d6b27d3717a046d26
parent94e9adad41da3d23ae2589f980150a60f1314120 (diff)
Fixed leak for renderer. Fixed build.
-rw-r--r--RtAudio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp
index 3e9308c..7331036 100644
--- a/RtAudio.cpp
+++ b/RtAudio.cpp
@@ -3933,6 +3933,7 @@ MIDL_INTERFACE( "00000000-0000-0000-0000-000000000000" ) IAudioClient3
{
virtual HRESULT GetSharedModeEnginePeriod( WAVEFORMATEX*, UINT32*, UINT32*, UINT32*, UINT32* ) = 0;
virtual HRESULT InitializeSharedAudioStream( DWORD, UINT32, WAVEFORMATEX*, LPCGUID ) = 0;
+ virtual HRESULT Release() = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL( IAudioClient3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )
@@ -5231,6 +5232,7 @@ void RtApiWasapi::wasapiThread()
MinPeriodInFrames,
renderFormat,
NULL );
+ SAFE_RELEASE(renderAudioClient3);
}
else
{