nvcodec: Mark class data as may-be-leaked to quiet the leaks tracer
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 11 Feb 2020 18:30:51 +0000 (00:00 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Tue, 11 Feb 2020 18:30:51 +0000 (00:00 +0530)
commit266dc415964a2fe7d87fc5e8f140763b87076797
treea83c556de93f52fc5317d7f13cd6dd2cd26089a6
parent9ac798ae5e7ebefea626d796eac8d859c3dfdf60
nvcodec: Mark class data as may-be-leaked to quiet the leaks tracer

The class data with the caps in it will be leaked if the element is
registered but never instantiated. There is no way around this. Mark
the caps as such so that the leaks tracer does not warn about it.

This is the same as pad template caps getting leaked, which are also
marked as may-be-leaked. These objects are initialized exactly once,
and are 'global' data.
sys/nvcodec/gstnvdec.c
sys/nvcodec/gstnvh264enc.c
sys/nvcodec/gstnvh265enc.c