aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2016-02-03 22:41:41 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2016-02-03 22:41:41 -0500
commit38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e (patch)
tree9ea7e3e7f468e76673dc9a80edad41183f3b114d /src
parentd4f4947ebb6e87fd4329171d0e3d7b32b2571684 (diff)
downloadtextadept-38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e.tar.gz
textadept-38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e.zip
Ensure Win32 single instance thread is terminated on exit; src/textadept.c
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
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