Assets/Plugins/Unity.Media.Utilities/Runtime/Utility.cs
/// <summary>
/// Perform leak verification, if leak tracking was enabled
/// </summary>
Perform leak verification, if leak tracking was enabled
Perform leak verification if leak tracking was enabled
[BurstDiscard]
        [Conditional("UNITY_MEDIA_MONITOR_NATIVE_ALLOCATIONS")]
        public static void VerifyLeaks()
        {
            if (s_AllocationTracker == null || !EnableLeakTracking)
                return;
            foreach (KeyValuePair<Allocator, ConcurrentDictionary<long, long>> pair in s_AllocationTracker)
            {
                foreach (long memory in pair.Value.Keys)
                    Debug.LogWarning($"Unity.Media.Utilities: Leaked {memory:x} from allocator {pair.Key}");
                pair.Value.Clear();
            }
        }
[ BurstDiscard ] [ Conditional ( " " ) ] public static void VerifyLeaks ( ) { if ( s_AllocationTracker == null || ! EnableLeakTracking ) return ; foreach ( KeyValuePair < Allocator , ConcurrentDictionary < long , long > > pair in s_AllocationTracker ) { foreach ( long memory in pair . Value . Keys ) Debug . LogWarning ( $" Unity.Media.Utilities: Leaked  { memory : }  from allocator  { pair . Key } " ) ; pair . Value . Clear ( ) ; } }
Perform leak verification, if leak tracking was enabled
Perform leak verification if leak tracking was enabled