diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2019-08-02 13:07:58 +0530 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2019-08-14 08:51:02 +0530 |
commit | de9ff8353398b58d2472f35fd195204c8cd4f06e (patch) | |
tree | 55df273e05ea3652d91ae97f9249d99c2541b968 | |
parent | 3e04aa2afc9db88a1a38313558ba7fab176dc16e (diff) |
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.
-rw-r--r-- | plugins/tracers/gstlatency.c | 5 | ||||
-rw-r--r-- | plugins/tracers/gstrusage.c | 3 | ||||
-rw-r--r-- | plugins/tracers/gststats.c | 8 |
3 files changed, 16 insertions, 0 deletions
diff --git a/plugins/tracers/gstlatency.c b/plugins/tracers/gstlatency.c index 945ad2493..c3e8f746f 100644 --- a/plugins/tracers/gstlatency.c +++ b/plugins/tracers/gstlatency.c @@ -668,6 +668,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 diff --git a/plugins/tracers/gstrusage.c b/plugins/tracers/gstrusage.c index 9086f1edc..681781504 100644 --- a/plugins/tracers/gstrusage.c +++ b/plugins/tracers/gstrusage.c @@ -346,6 +346,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 diff --git a/plugins/tracers/gststats.c b/plugins/tracers/gststats.c index 7ca1eca3c..2fba4fa3f 100644 --- a/plugins/tracers/gststats.c +++ b/plugins/tracers/gststats.c @@ -744,6 +744,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 |