diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-06 04:21:10 +0400 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-06 04:21:10 +0400 |
commit | 00a3431cbb27ace9120a07605e79c1d0d4c13d42 (patch) | |
tree | 75f5fb838571089509be40f84dd19b61e888e362 /libavformat | |
parent | b87025399c0aa3e3f17a6cf46d4fc751e799b6f1 (diff) |
matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-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; } } |