Skip to content
Snippets Groups Projects
Commit 60456133 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by François Cartegnie
Browse files

upnp: refactor using C++ try/catch

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 0d89fe3f.
parent 7f6614cb
No related branches found
No related tags found
1 merge request!890upnp: refactor using C++ try/catch
Pipeline #159323 passed with stage
in 30 minutes and 7 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment