Author: dzzinstant
Date: Thu Jul 31 22:59:32 2014
New Revision: 28

URL: http://svn.gna.org/viewcvs/pidgin-zrtp?rev=28&view=rev
Log:
minor: ownership of GstPad objects

Modified:
    trunk/src/pidgin-plugin/simplezrtp/zrtp-channel.c
    trunk/src/pidgin-plugin/simplezrtp/zrtp-conference.c

Modified: trunk/src/pidgin-plugin/simplezrtp/zrtp-channel.c
URL: 
http://svn.gna.org/viewcvs/pidgin-zrtp/trunk/src/pidgin-plugin/simplezrtp/zrtp-channel.c?rev=28&r1=27&r2=28&view=diff
==============================================================================
--- trunk/src/pidgin-plugin/simplezrtp/zrtp-channel.c   (original)
+++ trunk/src/pidgin-plugin/simplezrtp/zrtp-channel.c   Thu Jul 31 22:59:32 2014
@@ -258,10 +258,8 @@
        relink_state(ch);
 
 cleanup:
-       gst_object_unref(GST_OBJECT(src));
        gst_object_unref(GST_OBJECT(zrtpsink));
        gst_object_unref(GST_OBJECT(zrtpsrc));
-       gst_object_unref(GST_OBJECT(sink));
 
        DEBUG_ZRTPCHANNEL(ch, "relink_pads(): %s", success ? 
"success":"failed!");
        return success;

Modified: trunk/src/pidgin-plugin/simplezrtp/zrtp-conference.c
URL: 
http://svn.gna.org/viewcvs/pidgin-zrtp/trunk/src/pidgin-plugin/simplezrtp/zrtp-conference.c?rev=28&r1=27&r2=28&view=diff
==============================================================================
--- trunk/src/pidgin-plugin/simplezrtp/zrtp-conference.c        (original)
+++ trunk/src/pidgin-plugin/simplezrtp/zrtp-conference.c        Thu Jul 31 
22:59:32 2014
@@ -267,9 +267,9 @@
                                        call, sid, is_send ? "send":"recv", 
is_rtp ? "rtp":"rtcp");
                } else {
                        g_debug("el %s: already linked to zrtpfilter: %s!", 
GST_ELEMENT_NAME(el), GST_OBJECT_NAME(other));
-                       gst_object_unref(peer);
-                       gst_object_unref(pad);
                }
+               gst_object_unref(peer);
+               gst_object_unref(pad);
                gst_object_unref(other);
        }
        gst_iterator_free(iter);


_______________________________________________
Pidgin-zrtp-commits mailing list
Pidgin-zrtp-commits@gna.org
https://mail.gna.org/listinfo/pidgin-zrtp-commits

Reply via email to