[gtk+] placesview: no url for networks



commit 1219b67cdb14c904e7d956eff91a2c5152c1ce9b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Mon Aug 10 14:46:23 2015 -0300

    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.

 gtk/gtkplacesview.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c
index 9c5f334..9c05db2 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;


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