Fix uninitialized memory reads and memory leaks in StereoGC
Merge pull request #3414 from SpecLad:vg-stereogc