Renderer2: C conversion heap fix