diff options
| author | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2018-11-02 19:44:31 +0000 |
|---|---|---|
| committer | Marcus Tomlinson <themarcustomlinson@gmail.com> | 2018-11-02 19:44:31 +0000 |
| commit | 05f5f4ae9e6a80b4a58119b8e0a80780317a417f (patch) | |
| tree | 64c5d2cf3cb661ee183ea6961010863376ffafc5 /RtAudio.cpp | |
| parent | 4e5d52a99bdf324c30ea8818b74696c45dac502d (diff) | |
Fix potential memory leak
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index 91e4f2c..6b1ca06 100644 --- 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 ); |
