[gtk: 3/4] GtkFileChooserNativeWin32: Uninitialize COM at end of thread
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 3/4] GtkFileChooserNativeWin32: Uninitialize COM at end of thread
- Date: Mon, 5 Aug 2019 12:20:36 +0000 (UTC)
commit 02935afe942924c9612650946f4422c1da431639
Author: Luca Bacci <luca bacci982 gmail com>
Date: Tue Jul 16 12:43:43 2019 +0200
GtkFileChooserNativeWin32: Uninitialize COM at end of thread
GtkFileChooserNativeWin32 is created and shown on a secondary thread.
This thread initializes COM support with CoInitializeEx but does not
finalize it, so we have a leak. Fix that by calling CoUninitialize()
before thread terminates.
See Merge Request !1043
gtk/gtkfilechoosernativewin32.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtkfilechoosernativewin32.c b/gtk/gtkfilechoosernativewin32.c
index 4bab4ef00f..3bb81be29c 100644
--- a/gtk/gtkfilechoosernativewin32.c
+++ b/gtk/gtkfilechoosernativewin32.c
@@ -792,6 +792,8 @@ filechooser_win32_thread (gpointer _data)
IFileDialog_Release ((IUnknown *)pfd);
+ CoUninitialize();
+
g_main_context_invoke (NULL,
filechooser_win32_thread_done,
data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]