diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-06 00:21:10 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-06 00:21:10 +0000 |
commit | 00a3431cbb27ace9120a07605e79c1d0d4c13d42 (patch) | |
tree | 75f5fb838571089509be40f84dd19b61e888e362 | |
parent | b87025399c0aa3e3f17a6cf46d4fc751e799b6f1 (diff) | |
download | ffmpeg-00a3431cbb27ace9120a07605e79c1d0d4c13d42.tar.gz |
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 23fea470dc..d7a1e39846 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1304,8 +1304,7 @@ static void matroska_clear_queue(MatroskaDemuxContext *matroska) av_free_packet(matroska->packets[n]); av_free(matroska->packets[n]); } - av_free(matroska->packets); - matroska->packets = NULL; + av_freep(&matroska->packets); matroska->num_packets = 0; } } |