# HG changeset patch # User mmu_man # Date 1109072223 0 # Node ID 3d8bbb8e7156bbc484bda68db77545d2ac580a91 # Parent 9f17dd9b80c6277b5536e25a72076962fa00bbcd use av_free() instead of free() where it's meant to. diff -r 9f17dd9b80c6 -r 3d8bbb8e7156 apiexample.c --- 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"); }