diff options
author | Ton Roosendaal <ton@blender.org> | 2005-04-17 22:00:33 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-04-17 22:00:33 +0400 |
commit | d34acbfe44b552f6416619568ea1ea851ef3ebd7 (patch) | |
tree | 7a10356c8db5898eaffc120c7874a0276d02e8bb /source/blender/src/writeavicodec.c | |
parent | 425f2956043fb9da71bfa34086d923cda4b0e9c2 (diff) |
Replaced a bunch of malloc() calls with proper MEM_mallocN()
(and free() and calloc() of course)
Remainder malloc() calls need to be there for realloc().
Diffstat (limited to 'source/blender/src/writeavicodec.c')
-rw-r--r-- | source/blender/src/writeavicodec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/writeavicodec.c b/source/blender/src/writeavicodec.c index 5c9ddc9ec57..8e9ee8932aa 100644 --- a/source/blender/src/writeavicodec.c +++ b/source/blender/src/writeavicodec.c @@ -564,12 +564,12 @@ static void acd_to_opts(AviCodecData *acd) opts.cbParms = acd->cbParms; if (acd->lpFormat && acd->cbFormat) { - opts.lpFormat = malloc(opts.cbFormat); + opts.lpFormat = MEM_mallocN(opts.cbFormat, "opts lpFormat"); memcpy(opts.lpFormat, acd->lpFormat, opts.cbFormat); } if (acd->lpParms && acd->cbParms) { - opts.lpParms = malloc(opts.cbParms); + opts.lpParms = MEM_mallocN(opts.cbParms, "opts.cbParms"); memcpy(opts.lpParms, acd->lpParms, opts.cbParms); } } @@ -578,11 +578,11 @@ static void acd_to_opts(AviCodecData *acd) static void free_opts_data() { if (opts.lpFormat) { - free(opts.lpFormat); + MEM_freeN(opts.lpFormat); opts.lpFormat = NULL; } if (opts.lpParms) { - free(opts.lpParms); + MEM_freeN(opts.lpParms); opts.lpParms = NULL; } } |