validate: report: Do not unref an object where we do not own a ref

g_io_stream_get_output_stream is transfer none
This commit is contained in:
Thibault Saunier 2016-11-03 16:17:08 -03:00
parent 7ff1e0bca6
commit 8646977b27

View file

@ -690,11 +690,13 @@ gst_validate_report_init (void)
void
gst_validate_report_deinit (void)
{
if (server_ostream)
if (server_ostream) {
g_output_stream_close (server_ostream, NULL, NULL);
server_ostream = NULL;
}
g_clear_object (&socket_client);
g_clear_object (&server_connection);
g_clear_object (&server_ostream);
}
GstValidateIssue *