Changeset - 83bf526fbce9
[Not reviewed]
0 2 0
HanzZ - 14 years ago 2011-06-12 16:35:12
hanzz.k@gmail.com
Fixed deadlock while removing conversations
2 files changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/conversation.cpp
Show inline comments
 
@@ -32,6 +32,7 @@ Conversation::Conversation(ConversationManager *conversationManager, const std::
 
	m_legacyName = legacyName;
 
	m_conversationManager->addConversation(this);
 
	m_muc = isMUC;
 
	std::cout << "new conversation " << legacyName << "\n";
 
}
 

	
 
Conversation::~Conversation() {
src/conversationmanager.cpp
Show inline comments
 
@@ -37,6 +37,7 @@ ConversationManager::ConversationManager(User *user, Component *component){
 

	
 
ConversationManager::~ConversationManager() {
 
	while(!m_convs.empty()) {
 
		m_convs.erase(m_convs.begin());
 
		delete (*m_convs.begin()).second;
 
	}
 
}
0 comments (0 inline, 0 general)