note about finalizer future deprecation

This commit is contained in:
mratsim 2018-04-11 15:44:57 +02:00
parent 8e3dc293fd
commit 738270d478
1 changed files with 1 additions and 0 deletions

View File

@ -63,6 +63,7 @@ proc errorCallback(message: cstring, data: pointer) {.cdecl.} =
ctx.error = $message ctx.error = $message
proc shutdownLibsecp256k1(ekContext: EthKeysContext) = proc shutdownLibsecp256k1(ekContext: EthKeysContext) =
# TODO: use destructor when finalizer are deprecated for destructors
if not isNil(ekContext.context): if not isNil(ekContext.context):
secp256k1_context_destroy(ekContext.context) secp256k1_context_destroy(ekContext.context)