[nautilus] window: don't unref location if null



commit 46362fc6ded3096525bb9737a19d9d91ca238f37
Author: Carlos Soriano <csoriano gnome org>
Date:   Wed Sep 9 13:41:42 2015 +0200

    window: don't unref location if null

 src/nautilus-window.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index f9718a5..9529b5a 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -1075,15 +1075,13 @@ action_properties (GSimpleAction *action,
         /* Currently the sidebar returns NULL if the current location is not in
          * the sidebar */
         if (selected == NULL)
-                goto done;
+                return;
 
        file = nautilus_file_get (selected);
 
        list = g_list_append (NULL, file);
        nautilus_properties_window_present (list, GTK_WIDGET (window), NULL);
        nautilus_file_list_free (list);
-
-done:
        g_object_unref (selected);
 }
 


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