fixed some memory leaks

This commit is contained in:
Marc
2022-10-05 19:08:57 +02:00
parent 3376ac1da6
commit 7725e19069
9 changed files with 88 additions and 25 deletions
+1
View File
@@ -36,6 +36,7 @@ static TypeDescriptor_t getDescriptor(const char * descriptor) {
}
void freeGroup(FOModGroup_t * group) {
free(group->name);
if(group->pluginCount == 0) return;
for(int pluginId = 0; pluginId < group->pluginCount; pluginId++) {
FOModPlugin_t * plugin = &group->plugins[pluginId];