Skip to content

Commit 1eb271a

Browse files
committed
fix: remove _data from Dispose, because NativeArray is an non-disposeable object.
1 parent 9a5d31a commit 1eb271a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Runtime/Scripts/RtcVideoSource.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ public virtual void Dispose()
171171
{
172172
if (!isDisposed)
173173
{
174-
if (_data != null) _data.Dispose();
175174
if (_texture2D != null) UnityEngine.Object.Destroy(_texture2D);
176175
isDisposed = true;
177176
}

0 commit comments

Comments
 (0)