diff options
author | Justin Ruggles | 2011-10-12 14:44:02 -0400 |
---|---|---|
committer | Justin Ruggles | 2011-10-12 17:48:33 -0400 |
commit | c74f1f47b29dea6f4b5766a8d5a66bfeca35f9c3 (patch) | |
tree | a3f458ceb9815289f3cd7f9430a60ca7fffabc7b | |
parent | cb2c4de3a16c083973921587b6e8c79af59c9626 (diff) |
avplay: free the active audio packet at exit.
fixes a memleak
-rw-r--r-- | avplay.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2268,6 +2268,7 @@ static void stream_component_close(VideoState *is, int stream_index) SDL_CloseAudio(); packet_queue_end(&is->audioq); + av_free_packet(&is->audio_pkt); if (is->reformat_ctx) av_audio_convert_free(is->reformat_ctx); is->reformat_ctx = NULL; |