Backport of "aggregator: fix use-after-free in queries processing" into 1.22
requested to merge tpm/gstreamer:mr-5765-backport-into-1.22-aggregator-fix-query-use-after-free into 1.22
Backport of !5765 (merged) "aggregator: fix use-after-free in queries processing".
Commits:
- 97e74846 aggregator: fix use-after-free in queries processing