Cleanup: Correct an own earlier commit to use an existing utility function

Didn't know this function existed, better to use it then to avoid verbosity.
This commit is contained in:
2020-12-08 15:00:31 +01:00
parent 95b3c4c966
commit 2678953f69
4 changed files with 5 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ static PyObject *_bpy_names(BPy_Library *self, int blocktype)
PyList_SET_ITEM(list, counter, PyUnicode_FromString((char *)l->link));
counter++;
}
BLI_linklist_free(names, MEM_freeN); /* free linklist *and* each node's data */
BLI_linklist_freeN(names); /* free linklist *and* each node's data */
}
return list;