Destroy all conversations when user logout
This commit is contained in:
parent
164704c8aa
commit
6ac5920101
1 changed files with 3 additions and 0 deletions
|
@ -36,6 +36,9 @@ ConversationManager::ConversationManager(User *user, Component *component){
|
|||
}
|
||||
|
||||
ConversationManager::~ConversationManager() {
|
||||
while(!m_convs.empty()) {
|
||||
delete (*m_convs.begin()).second;
|
||||
}
|
||||
}
|
||||
|
||||
void ConversationManager::setConversation(Conversation *conv) {
|
||||
|
|
Loading…
Add table
Reference in a new issue