Codebase list libsdl2-mixer / c3053d5
Add minor memory leak fix from upstream release-2.6.x branch Simon McVittie 1 year, 4 months ago
2 changed file(s) with 22 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 From: Wohlstand <admin@wohlnet.ru>
1 Date: Sun, 18 Sep 2022 01:01:19 +0300
2 Subject: music_opus.c: Fixed the memory leak after tags
3
4 Origin: upstream, 2.6.3, commit:f1892a9a90a2f851b380053633a47c60d4d8665f
5 ---
6 src/codecs/music_opus.c | 1 +
7 1 file changed, 1 insertion(+)
8
9 diff --git a/src/codecs/music_opus.c b/src/codecs/music_opus.c
10 index c298095..1afdc9d 100644
11 --- a/src/codecs/music_opus.c
12 +++ b/src/codecs/music_opus.c
13 @@ -476,6 +476,7 @@ static double OPUS_LoopLength(void *music_p)
14 static void OPUS_Delete(void *context)
15 {
16 OPUS_music *music = (OPUS_music *)context;
17 + meta_tags_clear(&music->tags);
18 opus.op_free(music->of);
19 if (music->stream) {
20 SDL_FreeAudioStream(music->stream);
0 music_opus.c-Fixed-the-memory-leak-after-tags.patch