changeset 3696:4aef467adb6b libavformat

matroskadec: use av_freep(&x) instead of av_free(x);x=NULL
author aurel
date Wed, 06 Aug 2008 00:21:10 +0000
parents 5825a6cfd3bd
children c458ae91b0f9
files matroskadec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Wed Aug 06 00:17:47 2008 +0000
+++ b/matroskadec.c	Wed Aug 06 00:21:10 2008 +0000
@@ -1304,8 +1304,7 @@
             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;
     }
 }