diff --git a/src/App.h b/src/App.h index 94bf5fc..9208abb 100644 --- a/src/App.h +++ b/src/App.h @@ -56,6 +56,8 @@ public: } + /* todo: Proper move semantics so to not allow copy-then-double-free and such problems of httpContext, etc. */ + ~TemplatedApp() { /* Let's just put everything here */ httpContext->free(); diff --git a/src/StaticDispatch.h b/src/StaticDispatch.h index 35d9bc7..a6fceef 100644 --- a/src/StaticDispatch.h +++ b/src/StaticDispatch.h @@ -43,6 +43,7 @@ #define us_ssl_socket_context_adopt_socket us_socket_context_adopt_socket #define us_create_child_ssl_socket_context us_create_child_socket_context #define us_ssl_socket_shutdown us_socket_shutdown +#define us_ssl_socket_context_free us_socket_context_free #endif namespace uWS {