one minor memory leak fix to new gl capture method