[smuxi/experiments/new_chat_sync_manager: 4/5] Frontend: fixed leaking ChatViewSyncManager.Chats
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/new_chat_sync_manager: 4/5] Frontend: fixed leaking ChatViewSyncManager.Chats
- Date: Sun, 20 Jul 2014 19:29:48 +0000 (UTC)
commit c7a5de7c3b1dcae378b060b670ed910f1a20ec34
Author: Mirco Bauer <meebey meebey net>
Date: Sun Jul 20 21:26:43 2014 +0200
Frontend: fixed leaking ChatViewSyncManager.Chats
src/Frontend/ChatViewSyncManager.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Frontend/ChatViewSyncManager.cs b/src/Frontend/ChatViewSyncManager.cs
index 3f5ef9a..8330b32 100644
--- a/src/Frontend/ChatViewSyncManager.cs
+++ b/src/Frontend/ChatViewSyncManager.cs
@@ -561,6 +561,10 @@ namespace Smuxi.Frontend
public void Clear()
{
Trace.Call();
+
+ lock (Chats) {
+ Chats.Clear();
+ }
}
object GetChatKey(ChatModel chatModel)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]