report: Set refcount=1 when creating a report
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 14 Oct 2013 14:05:48 +0000 (11:05 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 14 Oct 2013 14:05:58 +0000 (11:05 -0300)
As it should start with 1 reference, not 0

validate/gst/validate/gst-validate-report.c

index 5b5fa57..66326e1 100644 (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);