diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-10 14:46:23 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2015-08-10 14:59:50 -0300 |
commit | 1219b67cdb14c904e7d956eff91a2c5152c1ce9b (patch) | |
tree | c223991772a153dca437f480ec1ff8d4bf5e70dc | |
parent | 843a8791a6d2e9139cb0856daae965a291af49ef (diff) | |
download | gtk+-1219b67cdb14c904e7d956eff91a2c5152c1ce9b.tar.gz |
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.
-rw-r--r-- | gtk/gtkplacesview.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index 9c5f334248..9c05db2b2d 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -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; |