Backport of "{d3d12,d3d11}decoder: Fix potential use after free" into 1.24
requested to merge gstreamer-backport-bot/gstreamer:mr-6706-backport-into-1.24-d3ddec-output-writable-fix into 1.24
Backport of !6706 (merged) "{d3d12,d3d11}decoder: Fix potential use after free".
Commits: