[empathy] empathy_call_window_content_added_cb: fix pad leak



commit c9e47d4bd51b0c79917db7e1539b452766ab300c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Feb 24 15:03:38 2012 +0100

    empathy_call_window_content_added_cb: fix pad leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=670745

 src/empathy-call-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 79d916a..ff810b2 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)
           {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]