- 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.
This commit is contained in:
Campbell Barton
2011-02-12 09:09:52 +00:00
parent e70ca00f71
commit 5af9e5fda9
4 changed files with 8 additions and 3 deletions

View File

@@ -2863,6 +2863,7 @@ void BKE_ptcache_disk_cache_rename(PTCacheID *pid, char *from, char *to)
}
}
}
closedir(dir);
strcpy(pid->cache->name, old_name);
}