diff options
author | 2016-02-03 22:41:41 -0500 | |
---|---|---|
committer | 2016-02-03 22:41:41 -0500 | |
commit | 38bd88a7fbc7ae3d54e4ff22700f39ae3f80186e (patch) | |
tree | 9ea7e3e7f468e76673dc9a80edad41183f3b114d /src | |
parent | d4f4947ebb6e87fd4329171d0e3d7b32b2571684 (diff) | |
download | textadept-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.c | 2 |
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 |