$OpenBSD: patch-lib_engine_protocol_call-core_cpp,v 1.1 2011/10/29 08:37:40 ajacoutot Exp $

From 95ed01baf6371293a120a204397a2b8e2d29357e Mon Sep 17 00:00:00 2001
From: Julien Puydt <jpuydt@newton.localdomain>
Date: Fri, 23 Sep 2011 20:06:57 +0000
Subject: Made the call core stop leaking connections -- and hence full objects

--- lib/engine/protocol/call-core.cpp.orig	Wed May 18 18:18:09 2011
+++ lib/engine/protocol/call-core.cpp	Fri Oct 28 15:43:23 2011
@@ -48,7 +48,10 @@ using namespace Ekiga;
 
 CallCore::~CallCore ()
 {
-  manager_connections.clear ();
+  for (std::list<boost::signals::connection>::iterator iter = manager_connections.begin ();
+       iter != manager_connections.end ();
+       ++iter)
+    iter->disconnect ();
 }
 
 
