Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-01-25 19:47:20 +0300
committerTon Roosendaal <ton@blender.org>2006-01-25 19:47:20 +0300
commit1cde5efa3d6676f94dfabb9206a145e837d380ef (patch)
tree7fde9f842c2ba23c92b7ac57116b265631adc78e /source/blender/avi
parent9da89615139451e9b58d986c7bfbcd7ba2fe28a1 (diff)
Orange:
- Missing free in AVI writing - time counter for animation render wasn't reset to zero on successive renders.
Diffstat (limited to 'source/blender/avi')
-rw-r--r--source/blender/avi/intern/endian.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/avi/intern/endian.c b/source/blender/avi/intern/endian.c
index 95492805760..152530dac0d 100644
--- a/source/blender/avi/intern/endian.c
+++ b/source/blender/avi/intern/endian.c
@@ -44,6 +44,7 @@
#include <stdio.h>
#include "AVI_avi.h"
#include "endian.h"
+#include "avi_intern.h"
#if defined(__sgi) || defined (__sparc) || defined (__sparc__) || defined (__PPC__) || defined (__ppc__) || defined (__BIG_ENDIAN__)
#define WORDS_BIGENDIAN
@@ -165,7 +166,7 @@ void awrite (AviMovie *movie, void *datain, int block, int size, FILE *fp, int t
#ifdef WORDS_BIGENDIAN
void *data;
- data = malloc (size);
+ data = MEM_mallocN (size, "avi endian");
memcpy (data, datain, size);
@@ -208,7 +209,7 @@ void awrite (AviMovie *movie, void *datain, int block, int size, FILE *fp, int t
break;
}
- free (data);
+ MEM_freeN (data);
#else /* WORDS_BIGENDIAN */
fwrite (datain, block, size, fp);
#endif /* WORDS_BIGENDIAN */