diff --git a/src/burner/win32/romdata.cpp b/src/burner/win32/romdata.cpp index bbce77f68..e14b659d8 100644 --- a/src/burner/win32/romdata.cpp +++ b/src/burner/win32/romdata.cpp @@ -406,7 +406,7 @@ void RomDataExit() if (NULL != pDataRomDesc) { for (int i = 0; i < RDI.nDescCount + 1; i++) { - free(pDataRomDesc[RDI.nDescCount].szName); + free(pDataRomDesc[i].szName); } free(pDataRomDesc);