Skip to content

Commit e7f4c5e

Browse files
committed
Fixed leaking released PixelBuffer.
1 parent 76df4ad commit e7f4c5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FlashCap.Core/FrameProcessor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ public void Dispose()
111111
{
112112
if (this.parent is { } parent)
113113
{
114+
var buffer = this.Buffer;
114115
base.OnReleaseNow();
115-
this.parent.ReleasePixelBuffer(this.Buffer);
116+
this.parent.ReleasePixelBuffer(buffer);
116117
this.parent = null;
117118
}
118119
}

0 commit comments

Comments
 (0)