mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Fix wrong ptr being used in Unlock().
This commit is contained in:
@@ -241,7 +241,7 @@ partial class TransferLoopThread
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (lockedPtr != IntPtr.Zero) _twain.MemoryManager.Unlock(lockedPtr);
|
||||
if (lockedPtr != IntPtr.Zero) _twain.MemoryManager.Unlock(dataPtr);
|
||||
if (dataPtr != IntPtr.Zero) _twain.MemoryManager.Free(dataPtr);
|
||||
}
|
||||
}
|
||||
@@ -332,7 +332,7 @@ partial class TransferLoopThread
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (lockedPtr != IntPtr.Zero) _twain.MemoryManager.Unlock(lockedPtr);
|
||||
if (lockedPtr != IntPtr.Zero) _twain.MemoryManager.Unlock(dataPtr);
|
||||
if (dataPtr != IntPtr.Zero) _twain.MemoryManager.Free(dataPtr);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user