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:
authorCampbell Barton <ideasman42@gmail.com>2011-02-12 12:09:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-12 12:09:52 +0300
commit5af9e5fda96bbf47ebf6bb5cfdd6b67bcbb365cb (patch)
treefa3ee54a8e2f344013870983f4e308f53c3ea999 /source/blender/blenkernel/intern/pointcache.c
parente70ca00f71c8f6f3be218e9113b714df25e33deb (diff)
- resource leak in pointcache, opendir without closedir()
- reading pointcache was using an incorrect, always NULL variable. - commented NDof code, was giving warnings and isnt used now.
Diffstat (limited to 'source/blender/blenkernel/intern/pointcache.c')
-rw-r--r--source/blender/blenkernel/intern/pointcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index bd919d2166d..84331e1b318 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -2863,6 +2863,7 @@ void BKE_ptcache_disk_cache_rename(PTCacheID *pid, char *from, char *to)
}
}
}
+ closedir(dir);
strcpy(pid->cache->name, old_name);
}