aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-24 22:03:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-02-27 15:46:44 +0800
commitc9e47d4bd51b0c79917db7e1539b452766ab300c (patch)
tree7589bf25e21dd15f48d667c9b38fd9c4ce3bbc97
parented191caba6658b580db78a1802f2c8293e4564fb (diff)
downloadgsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar.gz
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar.bz2
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar.lz
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar.xz
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.tar.zst
gsoc2013-empathy-c9e47d4bd51b0c79917db7e1539b452766ab300c.zip
empathy_call_window_content_added_cb: fix pad leak
https://bugzilla.gnome.org/show_bug.cgi?id=670745
-rw-r--r--src/empathy-call-window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 79d916ad2..ff810b2a0 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -3473,9 +3473,11 @@ empathy_call_window_content_added_cb (EmpathyCallHandler *handler,
if (GST_PAD_LINK_FAILED (gst_pad_link (pad, sink)))
{
gst_bin_remove (GST_BIN (priv->pipeline), priv->audio_input);
+ gst_object_unref (pad);
g_warning ("Could not link audio source to farsight");
break;
}
+ gst_object_unref (pad);
if (gst_element_set_state (priv->audio_input, GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE)
{