diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:11:09 +0000 |
commit | 1ea4f593658c8b161a0a725252058b49c16a6b29 (patch) | |
tree | 5bf96a2a7242b8a0c227a196a3368188a77f9d8e /libav/gif.c | |
parent | 065422677a17ddb3d84a3b85b5064eb7df7e2c8a (diff) | |
download | ffmpeg-1ea4f593658c8b161a0a725252058b49c16a6b29.tar.gz |
use av memory handling functions
Originally committed as revision 528 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/gif.c')
-rw-r--r-- | libav/gif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libav/gif.c b/libav/gif.c index f8a7fc0f1d..4aa1ba0b82 100644 --- a/libav/gif.c +++ b/libav/gif.c @@ -202,7 +202,7 @@ static int gif_write_header(AVFormatContext *s) return -1; */ - gif = malloc(sizeof(GIFContext)); + gif = av_malloc(sizeof(GIFContext)); if (!gif) return -1; s->priv_data = gif; @@ -218,7 +218,7 @@ static int gif_write_header(AVFormatContext *s) } if (!video_enc) { - free(gif); + av_free(gif); return -1; } else { width = video_enc->width; @@ -382,7 +382,7 @@ static int gif_write_trailer(AVFormatContext *s) put_byte(pb, 0x3b); put_flush_packet(&s->pb); - free(gif); + av_free(gif); return 0; } |