diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-10-31 13:54:40 -0200 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2011-10-31 13:54:40 -0200 |
commit | 1d61ece67ffac336e4beb430cb1da6e2b4f971cb (patch) | |
tree | b7f58ec4283d6e8b083854b8cd0d8d4038d316ef | |
parent | cb97cf5832904d9ce05c93318f43d8b83fb5aa37 (diff) |
connection: Remove unnecessary extra copy of caps when updating capabilities.
-rw-r--r-- | src/connection.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/connection.c b/src/connection.c index ad58ebb7d..eeec1cd16 100644 --- a/src/connection.c +++ b/src/connection.c @@ -3378,13 +3378,11 @@ gabble_connection_update_capabilities ( { GabbleConnection *self = GABBLE_CONNECTION (iface); TpBaseConnection *base = (TpBaseConnection *) self; - GabbleCapabilitySet *old_caps; + GabbleCapabilitySet *old_caps = NULL; TpChannelManagerIter iter; TpChannelManager *manager; guint i; - old_caps = gabble_capability_set_copy (self->priv->all_caps); - /* Now that someone has told us our *actual* capabilities, we can stop * advertising spurious caps in initial presence */ gabble_capability_set_clear (self->priv->bonus_caps); |