We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ebcf0d commit 593a182Copy full SHA for 593a182
1 file changed
Runtime/Scripts/VideoStream.cs
@@ -113,14 +113,15 @@ public IEnumerator Update()
113
}
114
var rgba = VideoBuffer.ToRGBA();
115
{
116
- Texture.LoadRawTextureData((IntPtr)rgba.Info.DataPtr, (int)rgba.GetMemorySize());
+ Texture.LoadRawTextureData((IntPtr)rgba.Info.DataPtr, (int)rgba.GetMemorySize());
117
118
Texture.Apply();
119
120
if (textureChanged)
121
TextureReceived?.Invoke(Texture);
122
123
TextureUploaded?.Invoke();
124
+ rgba.Dispose();
125
126
127
yield break;
0 commit comments