From 182f4e9a41f5cce483bf9852e289686c9cb7fce8 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 14 Oct 2013 11:05:48 -0300 Subject: [PATCH] report: Set refcount=1 when creating a report As it should start with 1 reference, not 0 --- validate/gst/validate/gst-validate-report.c | 1 + 1 file changed, 1 insertion(+) diff --git a/validate/gst/validate/gst-validate-report.c b/validate/gst/validate/gst-validate-report.c index 5b5fa5791f..66326e1c5b 100644 --- a/validate/gst/validate/gst-validate-report.c +++ b/validate/gst/validate/gst-validate-report.c @@ -318,6 +318,7 @@ gst_validate_report_new (GstValidateIssue * issue, { GstValidateReport *report = g_slice_new0 (GstValidateReport); + report->refcount = 1; report->issue = issue; report->reporter = reporter; /* TODO should we ref? */ report->message = g_strdup (message);