Patch for a small leak in nautilus-window-menus.c



Reported as:
http://bugzilla.gnome.org/show_bug.cgi?id=319333

Cheers
Kjartan

Index: nautilus-window-menus.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-window-menus.c,v
retrieving revision 1.288
diff -u -p -r1.288 nautilus-window-menus.c
--- nautilus-window-menus.c	19 Sep 2005 21:22:54 -0000	1.288
+++ nautilus-window-menus.c	20 Oct 2005 16:02:20 -0000
@@ -219,8 +219,10 @@ action_connect_to_server_callback (GtkAc
 {
 	NautilusWindow *window = NAUTILUS_WINDOW (user_data);
 	GtkWidget *dialog;
-	
-	dialog = nautilus_connect_server_dialog_new (window, nautilus_window_get_location (window));
+	char *location;
+	location = nautilus_window_get_location (window);
+	dialog = nautilus_connect_server_dialog_new (window, location);
+	g_free (location);
 
 	gtk_widget_show (dialog);
 }


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