mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
report: Set refcount=1 when creating a report
As it should start with 1 reference, not 0
This commit is contained in:
parent
f8b4235e33
commit
182f4e9a41
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue