From 8646977b2764f156846eaa85ecfb53e37cda825b Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 3 Nov 2016 16:17:08 -0300 Subject: [PATCH] validate: report: Do not unref an object where we do not own a ref g_io_stream_get_output_stream is transfer none --- validate/gst/validate/gst-validate-report.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 410015bafa..dac0ca4d1b 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -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 *