changeset 2517:3d8bbb8e7156 libavcodec

use av_free() instead of free() where it's meant to.
author mmu_man
date Tue, 22 Feb 2005 11:37:03 +0000
parents 9f17dd9b80c6
children 2c794e3903a2
files apiexample.c
diffstat 1 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/apiexample.c	Mon Feb 21 19:27:32 2005 +0000
+++ b/apiexample.c	Tue Feb 22 11:37:03 2005 +0000
@@ -85,7 +85,7 @@
     free(samples);
 
     avcodec_close(c);
-    free(c);
+    av_free(c);
 }
 
 /*
@@ -129,7 +129,7 @@
     }
     outfile = fopen(outfilename, "wb");
     if (!outfile) {
-        free(c);
+        av_free(c);
         exit(1);
     }
         
@@ -162,7 +162,7 @@
     free(outbuf);
 
     avcodec_close(c);
-    free(c);
+    av_free(c);
 }
 
 /*
@@ -272,8 +272,8 @@
     free(outbuf);
 
     avcodec_close(c);
-    free(c);
-    free(picture);
+    av_free(c);
+    av_free(picture);
     printf("\n");
 }
 
@@ -404,8 +404,8 @@
     fclose(f);
 
     avcodec_close(c);
-    free(c);
-    free(picture);
+    av_free(c);
+    av_free(picture);
     printf("\n");
 }