From c953d2b2bb9d49a2302d9a4afe81fd33908ec44b Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sat, 5 Jan 2019 00:39:46 +0100 Subject: [PATCH] Fix compiling on Windows without SSL --- src/App.h | 2 ++ src/StaticDispatch.h | 1 + 2 files changed, 3 insertions(+) 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 {