report: Set refcount=1 when creating a report

As it should start with 1 reference, not 0
This commit is contained in:
Thibault Saunier 2013-10-14 11:05:48 -03:00
parent f8b4235e33
commit 182f4e9a41

View file

@ -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);