Skip to content

Commit

Permalink
fix: remove _data from Dispose, because NativeArray is an non-dispose…
Browse files Browse the repository at this point in the history
…able object.
  • Loading branch information
cloudwebrtc committed Aug 9, 2024
1 parent 9a5d31a commit 1eb271a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Runtime/Scripts/RtcVideoSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ public virtual void Dispose()
{
if (!isDisposed)
{
if (_data != null) _data.Dispose();
if (_texture2D != null) UnityEngine.Object.Destroy(_texture2D);
isDisposed = true;
}
Expand Down

0 comments on commit 1eb271a

Please sign in to comment.