From 38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 3 Feb 2016 22:41:41 -0500 Subject: Ensure Win32 single instance thread is terminated on exit; src/textadept.c --- src/textadept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textadept.c b/src/textadept.c index ac9d1967..bcff6fcf 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -88,7 +88,7 @@ typedef GtkWidget Scintilla; INFINITE, NULL); \ HANDLE thread = CreateThread(NULL, 0, &pipe_listener, pipe, 0, NULL); \ gtk_main(); \ - CloseHandle(thread), CloseHandle(pipe); + TerminateThread(thread, 0), CloseHandle(thread), CloseHandle(pipe); #endif #endif -- cgit v1.2.3