tests/icles/dccp: Release reference to parent
authorSebastian Rasmussen <sebras@hotmail.com>
Sun, 6 Jul 2014 09:28:34 +0000 (11:28 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 10 Jul 2014 21:12:49 +0000 (22:12 +0100)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732977

tests/icles/dccp/call/DCCPClient.c
tests/icles/dccp/call/DCCPServer.c

index 907e68f5226a202bdb8d06637729cb15b6f92600..5f7eb019c2044e05b0f7a2a61639f42b37ae4ce8 100644 (file)
@@ -62,6 +62,7 @@ start_dccpserversink_pipe (GstElement * object, gint socket, gpointer data)
   GstElement *pipelinesink =
       (GstElement *) gst_element_get_parent (dccpserversink);
   gst_element_set_state (pipelinesink, GST_STATE_PLAYING);
+  gst_object_unref (pipelinesink);
 }
 
 
index 76a556bba096e66a3d4a8d5db5ddac16b4089ea4..fe0e34fa2b4d607b946a33b074608c39b6a722fa 100644 (file)
@@ -62,6 +62,7 @@ start_dccpclientsrc_pipe (GstElement * object, gint socket, gpointer data)
   GstElement *pipelinesrc =
       (GstElement *) gst_element_get_parent (dccpclientsrc);
   gst_element_set_state (pipelinesrc, GST_STATE_PLAYING);
+  gst_object_unref (pipelinesrc);
 }