From d260d4e29e240ad1a1947ab262ba51baa51558fa Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 4 Dec 2018 16:42:28 +0100 Subject: [PATCH] Fixed #5098: Abort connection and let the application clean up resources before exit. --- client/X11/xf_floatbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/X11/xf_floatbar.c b/client/X11/xf_floatbar.c index 1d6007251..f25b4df5a 100644 --- a/client/X11/xf_floatbar.c +++ b/client/X11/xf_floatbar.c @@ -86,7 +86,7 @@ struct xf_floatbar_button static void xf_floatbar_button_onclick_close(xfContext* xfc) { - ExitProcess(EXIT_SUCCESS); + freerdp_abort_connect(xfc->context.instance); } static void xf_floatbar_button_onclick_minimize(xfContext* xfc)