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>2005-04-17 19:50:52 +0400
committerTon Roosendaal <ton@blender.org>2005-04-17 19:50:52 +0400
commit8a02dc11decda40e67bf95a109645e8df4d80b7e (patch)
tree4554d4243dc816c4fb3c9d3c8b245064b65823b2 /source/blender/src/filesel.c
parentf919cf75f16d2da22cffb64e2b7b70e09d0e77ee (diff)
Patch provided by Andrea Weikert (elubie):
With a few tests I have discovered that when quitting Blender the filelist in SpaceFile doesn't get free'd. storage.c: I have replaced strdup for the relname member in BLI_builddir with BLI_strdup. and malloc with MEM_mallocN for the string member in BLI_addstrings(). filesel.c: Of course also had to replace free with MEM_freeN in freefilelist(). In freespacelist (space.c) I added call to freefilelist for the SPACE_FILE space type.
Diffstat (limited to 'source/blender/src/filesel.c')
-rw-r--r--source/blender/src/filesel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/filesel.c b/source/blender/src/filesel.c
index 219783f54fc..f1c32dd17a1 100644
--- a/source/blender/src/filesel.c
+++ b/source/blender/src/filesel.c
@@ -681,9 +681,9 @@ void freefilelist(SpaceFile *sfile)
if (sfile->filelist==0) return;
for(; num>=0; num--){
- free(sfile->filelist[num].relname);
+ MEM_freeN(sfile->filelist[num].relname);
- if (sfile->filelist[num].string) free(sfile->filelist[num].string);
+ if (sfile->filelist[num].string) MEM_freeN(sfile->filelist[num].string);
}
free(sfile->filelist);
sfile->filelist= 0;