Fix: MEM_new/MEM_freeN mismatch in file browser code
Caused by cd84d3f3da
This commit is contained in:
@@ -113,10 +113,10 @@ bool folderlist_clear_next(SpaceFile *sfile)
|
||||
void folderlist_free(ListBase *folderlist)
|
||||
{
|
||||
if (folderlist) {
|
||||
LISTBASE_FOREACH (FolderList *, folder, folderlist) {
|
||||
LISTBASE_FOREACH_MUTABLE (FolderList *, folder, folderlist) {
|
||||
MEM_freeN(folder->foldername);
|
||||
MEM_delete(folder);
|
||||
}
|
||||
BLI_freelistN(folderlist);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user