Skip to content

Commit

Permalink
Fixed leaking released PixelBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kekyo committed Mar 22, 2024
1 parent 76df4ad commit e7f4c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FlashCap.Core/FrameProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ public void Dispose()
{
if (this.parent is { } parent)
{
var buffer = this.Buffer;
base.OnReleaseNow();
this.parent.ReleasePixelBuffer(this.Buffer);
this.parent.ReleasePixelBuffer(buffer);
this.parent = null;
}
}
Expand Down

0 comments on commit e7f4c5e

Please sign in to comment.