mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
videoaggregator: unref temporary caps
The "possible_caps" needs unref after finished using to avoid memory leak. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2430>
This commit is contained in:
parent
909154a989
commit
c9417a1dea
1 changed files with 2 additions and 0 deletions
|
@ -1063,6 +1063,8 @@ gst_video_aggregator_find_best_format (GstVideoAggregator * vagg,
|
|||
gst_caps_unref (possible_caps);
|
||||
continue;
|
||||
}
|
||||
|
||||
gst_caps_unref (possible_caps);
|
||||
}
|
||||
|
||||
/* If the format is supported, consider it very high weight */
|
||||
|
|
Loading…
Reference in a new issue