Merge "[SettingsProvider] fix potential MemoryIntArray leakage" into main