mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
Fix padtemplate being unreffed twice on glib2
Original commit message from CVS: Fix padtemplate being unreffed twice on glib2
This commit is contained in:
parent
623c7f1144
commit
40724bf5ad
1 changed files with 5 additions and 4 deletions
|
@ -1429,13 +1429,14 @@ gst_real_pad_dispose (GObject *object)
|
|||
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "dispose %s:%s\n", GST_DEBUG_PAD_NAME(pad));
|
||||
|
||||
if (GST_PAD (pad)->padtemplate){
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "unreffing padtemplate'%s'\n",GST_OBJECT_NAME(GST_OBJECT (GST_PAD (pad)->padtemplate)));
|
||||
gst_object_unref (GST_OBJECT (GST_PAD (pad)->padtemplate));
|
||||
if (GST_PAD_PADTEMPLATE (pad)){
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "unreffing padtemplate'%s'\n", GST_OBJECT_NAME (GST_PAD_PADTEMPLATE (pad)));
|
||||
gst_object_unref (GST_OBJECT (GST_PAD_PADTEMPLATE (pad)));
|
||||
GST_PAD_PADTEMPLATE (pad) = NULL;
|
||||
}
|
||||
|
||||
if (GST_PAD_PEER (pad)){
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "disconnecting pad '%s'\n",GST_OBJECT_NAME(GST_OBJECT (GST_PAD (GST_PAD_PEER (pad)))));
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "disconnecting pad '%s'\n", GST_OBJECT_NAME (GST_OBJECT (GST_PAD (GST_PAD_PEER (pad)))));
|
||||
gst_pad_disconnect (pad, GST_PAD (GST_PAD_PEER (pad)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue