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
path: root/source
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-07-06 15:45:06 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-07-06 15:45:06 +0300
commit94e84f5be41de0f5b222f091e97f9fd0ad959460 (patch)
tree3dfa32590575accbd6732565349190be27f2741b /source
parentb7e84f32adb3b6e6189a9acc95804fdfb675c669 (diff)
Fix memleak with recent Outliner writefile changes.
Diffstat (limited to 'source')
-rw-r--r--source/blender/blenloader/intern/writefile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c
index 7933f5450f3..bbbe04dd24e 100644
--- a/source/blender/blenloader/intern/writefile.c
+++ b/source/blender/blenloader/intern/writefile.c
@@ -2941,6 +2941,8 @@ static void write_soops(WriteData *wd, SpaceOops *so)
writestruct_at_address(wd, DATA, TreeStore, 1, ts, &ts_flat);
writestruct_at_address(wd, DATA, TreeStoreElem, elems, data_addr, data);
+
+ MEM_freeN(data);
}
else {
so_flat.treestore = NULL;