-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MKCryptState: fix initialization of CryptState class.
Previously, the constructor of CryptState was not called because CryptState was a member of MKCryptStatePriv, which was allocated via malloc. This gets rid of MKCryptStatePriv, and instead just keeps a pointer to the private CryptState implementation directly in MKCryptState. As a result, we now allocate a new CryptState via 'new' in init, and clean it up in dealloc via 'delete'. Fixes #31
- Loading branch information
Showing
1 changed file
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters