ssl destroy: change ordering of ssl destroy to later than vhost destroy

https://github.com/warmcat/libwebsockets/issues/711
This commit is contained in:
daren-qterics 2016-12-10 08:55:18 +08:00 committed by Andy Green
parent 04fee5f75f
commit e618359d4f

View file

@ -891,7 +891,6 @@ lws_context_destroy(struct lws_context *context)
lws_free(pt->http_header_data);
}
lws_plat_context_early_destroy(context);
lws_ssl_context_destroy(context);
if (context->pt[0].fds)
lws_free_set_NULL(context->pt[0].fds);
@ -935,6 +934,7 @@ lws_context_destroy(struct lws_context *context)
vh = vh1;
}
lws_ssl_context_destroy(context);
lws_plat_context_late_destroy(context);
lws_free(context);