From 6f618087dea59d0a7c0d4ff0c63cd0dc38f76ac2 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 4 Aug 2010 10:50:25 +0200 Subject: destroy the old candidates before updating them --- libempathy/empathy-call-handler.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy/empathy-call-handler.c') 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"); } -- cgit v1.2.3