From 7aa5f85ccd0fb0f014af93f8cec4db8e27e60b7f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 20 Mar 2015 14:49:24 +0100 Subject: [PATCH] validate: report: fix invalid read when destroying Report @report was invalid when we were trying to clear the mutex. --- validate/gst/validate/gst-validate-report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 0112324b1a..886229268a 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -517,8 +517,8 @@ gst_validate_report_unref (GstValidateReport * report) (GDestroyNotify) gst_validate_report_unref); g_list_free_full (report->repeated_reports, (GDestroyNotify) gst_validate_report_unref); - g_slice_free (GstValidateReport, report); g_mutex_clear (&report->shadow_reports_lock); + g_slice_free (GstValidateReport, report); } }