fix crash when opening loadorjoin a second time

This commit is contained in:
pieeebot committed 2026-08-01 22:56:12 +03:00
1 parent 01abe05b18
commit b87d044cf0
2 files changed
+2 -8

No files matched your search

@@ -131,6 +131,6 @@ public:
~FriendSessionInfo() ~FriendSessionInfo()
{ {
if(displayLabel!=NULL) if(displayLabel!=NULL)
delete displayLabel; delete[] displayLabel;
} }
}; };
@@ -290,13 +290,7 @@ UIScene_LoadOrJoinMenu::~UIScene_LoadOrJoinMenu()
g_NetworkManager.SetSessionsUpdatedCallback( NULL, NULL ); g_NetworkManager.SetSessionsUpdatedCallback( NULL, NULL );
app.SetLiveLinkRequired( false ); app.SetLiveLinkRequired( false );
if(m_currentSessions) delete m_currentSessions;
{
for(AUTO_VAR(it, m_currentSessions->begin()); it < m_currentSessions->end(); ++it)
{
delete (*it);
}
}
#if TO_BE_IMPLEMENTED #if TO_BE_IMPLEMENTED
// Reset the background downloading, in case we changed it by attempting to download a texture pack // Reset the background downloading, in case we changed it by attempting to download a texture pack