Blender Git Commit Log

Git Commits -> Revision e4baa9f

Revision e4baa9f by Bastien Montagne (master)
September 9, 2015, 19:36 (GMT)
Fix broken logic in new FileBrowser caching of entries.

We were still using main borwser's FileDirEntryArr to own memory of entries currently in cache.

That was OK for common caching operation, but if was not released when clearing cache!
Nothing dramatic, since that was cleared too, but less often, so e.g. by changing sorting
options you could pile up more and more no-more-used entries there...

Anyway, there is no reason to do that, much more sound and clean to keep everything
cache-related in dedicated FileDirEntryCache struct.

This means main borwser's FileDirEntryArr is now always expected to not store any actual entry!

Note: this can probably be cleaned up a bit more, but would wait after 2.76 for this!

Commit Details:

Full Hash: e4baa9fb8626065f3ecb3abd035afe47e01b527f
Parent Commit: 02b9921
Lines Changed: +28, -4

1 Modified Path:

/source/blender/editors/space_file/filelist.c (+28, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021