aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-04 16:50:25 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-05 17:08:22 +0800
commit6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2 (patch)
tree7cffb33377136e0d2d0de8b4b8348cd20971bbea /libempathy
parentc2aacd4f46a4fbb449f78809a88aff08d3084974 (diff)
downloadgsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar.gz
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar.bz2
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar.lz
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar.xz
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.tar.zst
gsoc2013-empathy-6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2.zip
destroy the old candidates before updating them
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-call-handler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c
index 2e1a119d2..feb6793ca 100644
--- a/libempathy/empathy-call-handler.c
+++ b/libempathy/empathy-call-handler.c
@@ -479,12 +479,14 @@ update_candidates (EmpathyCallHandler *self,
{
if (remote_candidate != NULL)
{
+ fs_candidate_destroy (priv->audio_remote_candidate);
priv->audio_remote_candidate = fs_candidate_copy (remote_candidate);
g_object_notify (G_OBJECT (self), "audio-remote-candidate");
}
if (local_candidate != NULL)
{
+ fs_candidate_destroy (priv->audio_local_candidate);
priv->audio_local_candidate = fs_candidate_copy (local_candidate);
g_object_notify (G_OBJECT (self), "audio-local-candidate");
}
@@ -493,12 +495,14 @@ update_candidates (EmpathyCallHandler *self,
{
if (remote_candidate != NULL)
{
+ fs_candidate_destroy (priv->video_remote_candidate);
priv->video_remote_candidate = fs_candidate_copy (remote_candidate);
g_object_notify (G_OBJECT (self), "video-remote-candidate");
}
if (local_candidate != NULL)
{
+ fs_candidate_destroy (priv->video_local_candidate);
priv->video_local_candidate = fs_candidate_copy (local_candidate);
g_object_notify (G_OBJECT (self), "video-local-candidate");
}