mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
rtspsink: Fix some leaks in rtspclientsink and the unit test.
https://bugzilla.gnome.org/show_bug.cgi?id=762525
This commit is contained in:
parent
a6367c5971
commit
b96e4e16a7
2 changed files with 9 additions and 2 deletions
|
@ -1047,6 +1047,8 @@ gst_rtsp_client_sink_sinkpad_event (GstPad * pad, GstObject * parent,
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
gst_object_unref (target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1071,6 +1073,7 @@ gst_rtsp_client_sink_sinkpad_query (GstPad * pad, GstObject * parent,
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
gst_object_unref (target);
|
||||||
}
|
}
|
||||||
|
|
||||||
return gst_pad_query_default (pad, parent, query);
|
return gst_pad_query_default (pad, parent, query);
|
||||||
|
|
|
@ -163,13 +163,17 @@ GST_START_TEST (test_record)
|
||||||
/* Create an rtspclientsink and send some data */
|
/* Create an rtspclientsink and send some data */
|
||||||
{
|
{
|
||||||
gchar *uri = get_server_uri (test_port, TEST_MOUNT_POINT);
|
gchar *uri = get_server_uri (test_port, TEST_MOUNT_POINT);
|
||||||
gchar *pipe_str = g_strdup_printf (AUDIO_PIPELINE,
|
gchar *pipe_str;
|
||||||
RECORD_N_BUFS, uri);
|
|
||||||
GstMessage *msg;
|
GstMessage *msg;
|
||||||
GstElement *pipeline;
|
GstElement *pipeline;
|
||||||
GstBus *bus;
|
GstBus *bus;
|
||||||
|
|
||||||
|
pipe_str = g_strdup_printf (AUDIO_PIPELINE, RECORD_N_BUFS, uri);
|
||||||
|
g_free (uri);
|
||||||
|
|
||||||
pipeline = gst_parse_launch (pipe_str, NULL);
|
pipeline = gst_parse_launch (pipe_str, NULL);
|
||||||
|
g_free (pipe_str);
|
||||||
|
|
||||||
fail_unless (pipeline != NULL);
|
fail_unless (pipeline != NULL);
|
||||||
|
|
||||||
bus = gst_element_get_bus (pipeline);
|
bus = gst_element_get_bus (pipeline);
|
||||||
|
|
Loading…
Reference in a new issue