diff --git a/FlashCap.Core/FrameProcessor.cs b/FlashCap.Core/FrameProcessor.cs index dedb43c..1b9b458 100644 --- a/FlashCap.Core/FrameProcessor.cs +++ b/FlashCap.Core/FrameProcessor.cs @@ -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; } }