projects
/
rtaudio-cdist.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix potential memory leak
[rtaudio-cdist.git]
/
RtAudio.cpp
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 91e4f2c31b7b0942ca49eab0610ff7f0aa9d40c9..6b1ca063a9dc5d17ff292b0751a46b5a0cd238d9 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-4804,7
+4804,8
@@
bool RtApiWasapi::probeDeviceOpen( unsigned int device, StreamMode mode, unsigne
IAudioClient*& renderAudioClient = ( ( WasapiHandle* ) stream_.apiHandle )->renderAudioClient;
if ( renderAudioClient )
{
- return SUCCESS;
+ methodResult = SUCCESS;
+ goto Exit;
}
hr = renderDevices->Item( device, &devicePtr );