[vlc-commits] [Git][videolan/vlc][3.0.x] winstore: fix memleak if device failed

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Jun 24 06:22:39 UTC 2023



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
6f769d60 by Thomas Guillem at 2023-06-24T05:44:23+00:00
winstore: fix memleak if device failed

(cherry picked from commit 7036c75d721ce9259a37486d525104c61bb01bea)

- - - - -


1 changed file:

- modules/audio_output/winstore.c


Changes:

=====================================
modules/audio_output/winstore.c
=====================================
@@ -366,7 +366,10 @@ static void Play(audio_output_t *aout, block_t *block)
 {
     aout_sys_t *sys = aout->sys;
     if( unlikely( sys->client == NULL ) )
+    {
+        block_Release(block);
         return;
+    }
 
     EnterMTA();
     HRESULT hr = aout_stream_Play(sys->stream, block);



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6f769d60a786179236112c02d8652f61dd36271d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/6f769d60a786179236112c02d8652f61dd36271d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list