Fix uninitialized memory reads and memory leaks in StereoGC