Browse Source

matroskadec: use av_freep(&x) instead of av_free(x);x=NULL

Originally committed as revision 14633 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Aurelien Jacobs 17 years ago
parent
commit
00a3431cbb
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/matroskadec.c

+ 1
- 2
libavformat/matroskadec.c View File

@@ -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;
}
}


Loading…
Cancel
Save