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




commit bfe713f282d5c082874d8c73c1604ed5c5fb7d2f
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 05e969129..c7300e2d4 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]