From 1eb271a6372168bf0bca46fc2c98f0cfa86b2b15 Mon Sep 17 00:00:00 2001 From: "duanweiwei1982@gmail.com" Date: Fri, 9 Aug 2024 12:38:11 +0800 Subject: [PATCH] fix: remove _data from Dispose, because NativeArray is an non-disposeable object. --- Runtime/Scripts/RtcVideoSource.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Runtime/Scripts/RtcVideoSource.cs b/Runtime/Scripts/RtcVideoSource.cs index 18cf3ab..99a80cd 100644 --- a/Runtime/Scripts/RtcVideoSource.cs +++ b/Runtime/Scripts/RtcVideoSource.cs @@ -171,7 +171,6 @@ public virtual void Dispose() { if (!isDisposed) { - if (_data != null) _data.Dispose(); if (_texture2D != null) UnityEngine.Object.Destroy(_texture2D); isDisposed = true; }