[System]: Fix memory leak in AppleTls. (#5305)
authorMartin Baulig <mabaul@microsoft.com>
Wed, 9 Aug 2017 16:27:28 +0000 (12:27 -0400)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2017 16:27:28 +0000 (12:27 -0400)
commit0fdb5fae2f5ca641d4a942ea62872bcf8126410e
treedf3baae97d648e445fe16a287f4a36afe30211ac
parent4d4594d8b8c7230a3555d5bf740b0e1d3cadd767
[System]: Fix memory leak in AppleTls. (#5305)

* [System]: Fix memory leak in AppleTls.

* Apply Miguel's patch to use GCHandleType.Weak.

* Actually assign context.
mcs/class/System/Mono.AppleTls/AppleTlsContext.cs