Merge "Fix potential memory corruption in NuCachedSource2."