mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
tracers: set MAY_BE_LEAKED on tracer records
The records are static and so appear as false positives when using those tracers with the leaks tracer as well. The leaks tracer was already setting this flag on its record so let's set it on the other ones as well.
This commit is contained in:
parent
b50abd9f4e
commit
e4cba8a0bf
3 changed files with 16 additions and 0 deletions
|
@ -674,6 +674,11 @@ gst_latency_tracer_class_init (GstLatencyTracerClass * klass)
|
|||
NULL),
|
||||
NULL);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
GST_OBJECT_FLAG_SET (tr_latency, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_element_latency, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_element_reported_latency,
|
||||
GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -373,6 +373,9 @@ gst_rusage_tracer_class_init (GstRUsageTracerClass * klass)
|
|||
NULL),
|
||||
NULL);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
GST_OBJECT_FLAG_SET (tr_thread, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_proc, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -774,6 +774,14 @@ gst_stats_tracer_class_init (GstStatsTracerClass * klass)
|
|||
NULL),
|
||||
NULL);
|
||||
/* *INDENT-ON* */
|
||||
|
||||
GST_OBJECT_FLAG_SET (tr_buffer, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_event, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_message, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_element_query, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_query, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_new_element, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
GST_OBJECT_FLAG_SET (tr_new_pad, GST_OBJECT_FLAG_MAY_BE_LEAKED);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue