Browse Source
The try/catch for exception safety was already needed there, and this
simplify the code a lot, so this moves the allocation into unique_ptr to
benefit from RAII destructors.
In addition, this commit change the call to free(p_sys) into the correct
C++ delete, avoiding a mismatch new/free.
Introduced in 0d89fe3fd7.
pull/130/head
committed by
François Cartegnie
1 changed files with 16 additions and 19 deletions
Loading…
Reference in new issue