Re: Leak in nautilus-file-utilities.c



On Wed, 2005-03-30 at 13:05 +0200, Kjartan Maraas wrote:

> --- nautilus-file-utilities.c	14 Jan 2005 10:40:11 -0000	1.123
> +++ nautilus-file-utilities.c	30 Mar 2005 11:01:25 -0000
> @@ -472,6 +472,7 @@ nautilus_get_uri_shortname_for_display (
>  	} else if (g_ascii_strcasecmp (uri->method_string, "file") == 0) {
>  		text_uri = gnome_vfs_uri_to_string (uri, GNOME_VFS_URI_HIDE_PASSWORD);
>  		local_file = gnome_vfs_get_local_path_from_uri (text_uri);
> +		g_free (name);
>  		name = g_filename_display_basename (local_file);
>  		g_free (local_file);
>  		g_free (text_uri);
> 
> Does that look right?

Yes - please commit on both branches.

Thanks,
Martin





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