[nautilus] Free "remaining" returned from GOption



commit 7c2c5f904d183d510e9fb4f4ac07fe7660274692
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Sep 7 16:20:53 2009 +0200

    Free "remaining" returned from GOption

 src/nautilus-main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-main.c b/src/nautilus-main.c
index 6bfb584..ce480c7 100644
--- a/src/nautilus-main.c
+++ b/src/nautilus-main.c
@@ -326,7 +326,7 @@ main (int argc, char *argv[])
 	gboolean autostart_mode;
 	const char *autostart_id;
 	gchar *geometry;
-	const gchar **remaining;
+	gchar **remaining;
 	gboolean perform_self_check;
 	NautilusApplication *application;
 	GOptionContext *context;
@@ -516,6 +516,7 @@ main (int argc, char *argv[])
 			}
 			g_ptr_array_add (uris_array, NULL);
 			uris = (char **)g_ptr_array_free (uris_array, FALSE);
+			g_strfreev (remaining);
 		}
 
 		



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