[ekiga/ds-fix-boost-leaks] DynamicObjectStore: Fixed add_connection.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-fix-boost-leaks] DynamicObjectStore: Fixed add_connection.
- Date: Tue, 6 Oct 2015 16:52:09 +0000 (UTC)
commit 339c2c00039abfb2ccb606a1abb45c60c665f225
Author: Damien Sandras <dsandras seconix com>
Date: Tue Oct 6 18:50:42 2015 +0200
DynamicObjectStore: Fixed add_connection.
add_connection was adding the object to the collection without
connecting the updated & removed signals. If add_connection was called
before add_object, those signals were never connected.
lib/engine/framework/dynamic-object-store.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/framework/dynamic-object-store.h b/lib/engine/framework/dynamic-object-store.h
index 0b49d1e..21c0e04 100644
--- a/lib/engine/framework/dynamic-object-store.h
+++ b/lib/engine/framework/dynamic-object-store.h
@@ -38,9 +38,10 @@
#include <boost/signals2.hpp>
#include <boost/bind.hpp>
-#include <list>
+#include <iostream>
#include <boost/smart_ptr.hpp>
+#include <typeinfo>
#include "map-key-iterator.h"
#include "map-key-const-iterator.h"
@@ -127,7 +128,7 @@ Ekiga::DynamicObjectStore<ObjectType>::add_connection (boost::shared_ptr<ObjectT
{
typename container_type::iterator iter = objects.find (obj);
if (iter == objects.end ())
- objects[obj] = boost::shared_ptr<scoped_connections> (new scoped_connections);
+ add_object (obj); // Add object
objects[obj]->add (connection);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]