Skip to content

Commit 0262db8

Browse files
SiegeLordExSiegeLord
authored andcommitted
Fix a few double-frees in the Opus code.
1 parent 9534c9d commit 0262db8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

addons/acodec/opus.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ static void ogg_stream_close(ALLEGRO_AUDIO_STREAM *stream)
323323
al_fclose(extra->file);
324324

325325
lib.op_free(extra->of);
326-
al_free(extra->of);
327326
al_free(extra);
328327
stream->extra = NULL;
329328
}
@@ -449,7 +448,6 @@ ALLEGRO_AUDIO_STREAM *_al_load_ogg_opus_audio_stream_f(ALLEGRO_FILE *file,
449448
_al_count_to_channel_conf(channels));
450449
if (!stream) {
451450
lib.op_free(of);
452-
al_free(of);
453451
return NULL;
454452
}
455453

0 commit comments

Comments
 (0)