Fix crash in Databases menu when database init fails

Do not free the database when init fails because it will already be freed when exiting the menu
This commit is contained in:
Cavv 2025-03-20 12:18:16 +01:00
parent 9bfd8ad2c0
commit c93da2708e

View File

@ -1478,9 +1478,7 @@ void databasesMenu(void)
continue;
Database d = dbList[i];
if (!loadDatabase(d))
freeDatabase(d);
loadDatabase(d);
switchMenu(MENU_DATABASES);
}