forked from cafeberry/cafeberry
fix crash when opening loadorjoin a second time
This commit is contained in:
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
|
||||||
|
|||||||
Reference in new issue
Block a user