mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
18 lines
414 B
C#
18 lines
414 B
C#
using System;
|
|
using Microsoft.Win32.SafeHandles;
|
|
|
|
namespace Bit.iOS
|
|
{
|
|
internal class BitwardenClientSafeHandle : SafeHandleZeroOrMinusOneIsInvalid
|
|
{
|
|
public BitwardenClientSafeHandle() : base(true) { }
|
|
|
|
public IntPtr Ptr => this.handle;
|
|
|
|
protected override bool ReleaseHandle()
|
|
{
|
|
BitwardenClientWrapper.free_mem(handle);
|
|
return true;
|
|
}
|
|
}
|
|
} |