Backport of "gstbuffer: Unref memories before metas" into 1.22
Backport of !4176 (merged) "gstbuffer: Unref memories before metas".
Commits:
- 096bd3c4 gstbuffer: Add parent meta when a copy shares memory with parent
- 22613b9b gstbuffer: Unref memories before metas
Fixes #3139 (closed)
Edited by Nicolas Dufresne