diff --git a/src/connection-pool.h b/src/connection-pool.h
index 7a14f57d8c5c11056d872e7b22a238793a02eabe..67bcf00027010038e55d60825a3db8924790edf2 100644 (file)
--- a/src/connection-pool.h
+++ b/src/connection-pool.h
typedef std::map<std::string, sigc::connection*> ConnectionMap;
typedef std::map<std::string, sigc::connection*> ConnectionMap;
- ~ConnectionPool ()
+ virtual ~ConnectionPool ()
{
{
- for (ConnectionMap::iterator iter = map.begin (), end = map.end (); iter != end; ++iter)
- {
- sigc::connection* connection = (*iter).second;
- connection->disconnect ();
- delete connection;
- }
+ for (ConnectionMap::iterator iter = map.begin (), end = map.end (); iter != end; ++iter) {
+ sigc::connection* connection = (*iter).second;
+ connection->disconnect ();
+ delete connection;
+ }
}
void
add_connection (std::string name, sigc::connection* connection)
{
}
void
add_connection (std::string name, sigc::connection* connection)
{
- if (map.find (name) != map.end ()) throw NAME_EXISTS;
- map.insert (std::make_pair (name, connection));
+ if (map.find (name) != map.end ()) throw NAME_EXISTS;
+ map.insert (std::make_pair (name, connection));
}
void
}
void