diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-08 16:55:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-02-08 16:55:31 +0300 |
commit | ec7df03c867d28316708e9b91bec5cef0aee832e (patch) | |
tree | 3f560939b745032e235d9ac789c4117d669d6462 /source/blender/blenlib/intern/storage.c | |
parent | 4c318539b2f6abdf8f2a02376b6fcb8d30a4b12e (diff) |
Warning fixes, one actual bug found in sequencer sound wave drawing. Also
changed some malloc to MEM_mallocN while trying to track down a memory leak.
Diffstat (limited to 'source/blender/blenlib/intern/storage.c')
-rw-r--r-- | source/blender/blenlib/intern/storage.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/storage.c b/source/blender/blenlib/intern/storage.c index ee7734fb14b..f7f032a72bb 100644 --- a/source/blender/blenlib/intern/storage.c +++ b/source/blender/blenlib/intern/storage.c @@ -487,7 +487,7 @@ LinkNode *BLI_read_file_as_lines(char *name) size= ftell(fp); fseek(fp, 0, SEEK_SET); - buf= malloc(size); + buf= MEM_mallocN(size, "file_as_lines"); if (buf) { int i, last= 0; @@ -506,7 +506,7 @@ LinkNode *BLI_read_file_as_lines(char *name) } } - free(buf); + MEM_freeN(buf); } fclose(fp); |