twain/twain-cs

DsmMemFree - Validate [sf#6]

Closed this issue · 4 comments

Reported by mcdon on 2014-10-27 20:35 UTC
In DsmMemFree (under "// Validate..."):
if (a_intptrHandle != IntPtr.Zero) return;
probably meant to be
if (a_intptrHandle == IntPtr.Zero) return;
to exit early if the pointer is null

Updated by mlmcl on 2014-10-28 13:02 UTC

  • status: open --> accepted
  • assigned_to: Mark

Commented by mlmcl on 2014-10-28 13:02 UTC
Ouch...there's a leak. Thanks for the catch...

Updated by mlmcl on 2014-10-30 23:06 UTC

  • status: accepted --> closed

Commented by mlmcl on 2014-10-30 23:06 UTC
Fixed...