From e112bdb2472bf98f59ad4beda67d57262c782797 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 2 Sep 2022 12:35:17 +0200 Subject: [PATCH] GWin32AppInfo: Add missing g_spawn_close_pid --- gio/gwin32appinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c index 89bd879c0..6ff259f7d 100644 --- a/gio/gwin32appinfo.c +++ b/gio/gwin32appinfo.c @@ -4798,6 +4798,7 @@ emit_launched (GAppLaunchContext *context, GVariant *platform_data = make_platform_data (*pid); g_signal_emit_by_name (context, "launched", info, platform_data); g_variant_unref (platform_data); + g_spawn_close_pid (*pid); } else { @@ -4815,7 +4816,7 @@ emit_launched (GAppLaunchContext *context, (GDestroyNotify) emit_launched_data_free); } - *pid = 0; + *pid = NULL; } typedef struct {