[nautilus/wip/hadess/reinstate-multi-file-launching: 4/4] mime-actions: Don't leak error




commit 3411d49814ab7acc1a66f3ea18fb9d918640bc58
Author: António Fernandes <antoniof gnome org>
Date:   Wed Dec 30 17:44:59 2020 +0000

    mime-actions: Don't leak error

 src/nautilus-mime-actions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 03d17f8f9..87e44e1c5 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -1511,7 +1511,7 @@ launch_default_for_uris_callback (GObject      *source_object,
     ApplicationLaunchAsyncParameters *params;
     ActivateParameters *activation_params;
     char *uri;
-    GError *error = NULL;
+    g_autoptr (GError) error = NULL;
 
     params = user_data;
     activation_params = params->activation_params;


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