[glib: 1/2] GWin32AppInfo: Add missing g_spawn_close_pid




commit e112bdb2472bf98f59ad4beda67d57262c782797
Author: Luca Bacci <luca bacci982 gmail com>
Date:   Fri Sep 2 12:35:17 2022 +0200

    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 89bd879c0b..6ff259f7d0 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 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]