Skip to content

Backport of "gl: numerous memory fixes (use-after-free, leaks, missing NULL-ify)" into 1.16

Backport of !557 (merged) "gl: numerous memory fixes (use-after-free, leaks, missing NULL-ify)".

Needs manual intervention, cherry-picking failed!

Commits:

  • 9461d178 gl/basesrc: call gl_stop when shutting down (GstGLBaseSrc does not exist in 1.16)
  • cbffe13d glviewconvert: also remove GL buffers on a reset
  • af198635 glviewconvert: fix a use-after-free with allocation params (affected code does not access invalid memory in 1.16)
  • 1abd05db glviewconvert: fix reset context for GL context change
  • 2a4a3aa0 gltestsrc: NULL out the functions used
  • a171eb80 glcolorconvert: error out if memory context is different than ours
Edited by Matthew Waters

Merge request reports