Browse Source

avplay: free the active audio packet at exit.

fixes a memleak
tags/n0.9
Justin Ruggles 13 years ago
parent
commit
c74f1f47b2
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      avplay.c

+ 1
- 0
avplay.c View File

@@ -2268,6 +2268,7 @@ static void stream_component_close(VideoState *is, int stream_index)
SDL_CloseAudio(); SDL_CloseAudio();


packet_queue_end(&is->audioq); packet_queue_end(&is->audioq);
av_free_packet(&is->audio_pkt);
if (is->reformat_ctx) if (is->reformat_ctx)
av_audio_convert_free(is->reformat_ctx); av_audio_convert_free(is->reformat_ctx);
is->reformat_ctx = NULL; is->reformat_ctx = NULL;


Loading…
Cancel
Save