placesview: no url for networks

We are not showing the URL of network locations
anymore, since they are distracting and not
necessary.

The code, however, forgot to cleanup the URL,
so we are still showing the URL for network
locations.

Fix that by properly cleanup the URL for network
locations.
This commit is contained in:
Georges Basile Stavracas Neto 2015-08-10 14:46:23 -03:00
parent 843a8791a6
commit 1219b67cdb

View File

@ -734,6 +734,9 @@ add_mount (GtkPlacesView *view,
schema = g_uri_parse_scheme (uri);
is_network = g_strcmp0 (schema, "file") != 0;
if (is_network)
g_clear_pointer (&path, g_free);
if (!g_mount_is_shadowed (mount))
{
GtkWidget *row;