mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Fix wrong dispose logic in BufferedData.
This commit is contained in:
@@ -77,7 +77,7 @@ public class BufferedData : IDisposable
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_fromPool && _disposed)
|
||||
if (_fromPool && !_disposed)
|
||||
{
|
||||
MemPool.Return(_buffer);
|
||||
_disposed = true;
|
||||
|
||||
Reference in New Issue
Block a user