Fix dbFreeBase() issue causing segfaults

This commit is contained in:
Andrew Johnson
2016-04-28 18:10:26 -05:00
parent 1f36670175
commit b4a8a1ac98

View File

@@ -589,7 +589,7 @@ void dbFreeBase(dbBase *pdbbase)
while (pguiGroup) {
pguiGroupNext = (dbGuiGroup *)ellNext(&pguiGroup->node);
gphDelete(pdbbase->pgpHash, pguiGroup->name, &pdbbase->guiGroupList);
ellDelete(&pdbbase->bptList, &pguiGroup->node);
ellDelete(&pdbbase->guiGroupList, &pguiGroup->node);
free(pguiGroup->name);
free((void *)pguiGroup);
pguiGroup = pguiGroupNext;