Blob Blame History Raw
From ba29a2ffb1cd85ea323a7aa44fbf86fd804c2532 Mon Sep 17 00:00:00 2001
From: Michael Webster <miketwebster@gmail.com>
Date: Tue, 3 Oct 2023 10:30:22 -0400
Subject: [PATCH] nemo-pathbar.c: Remove unnecessary g_object_unref.

This was flagged as a leak in cd2330018 - maybe a false positive
caused by an unclean process termination

The root path will never change, so it's not necessary to free it
other than when the pathbar is destroyed.

ref: https://bugzilla.redhat.com/show_bug.cgi?id=2193021
---
 src/nemo-pathbar.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/nemo-pathbar.c b/src/nemo-pathbar.c
index 08fef07c4..e2acbcbb5 100644
--- a/src/nemo-pathbar.c
+++ b/src/nemo-pathbar.c
@@ -221,7 +221,6 @@ desktop_location_changed_callback (gpointer user_data)
 
     g_object_unref (path_bar->priv->desktop_path);
     g_object_unref (path_bar->priv->home_path);
-    g_object_unref (path_bar->priv->root_path);
     path_bar->priv->desktop_path = nemo_get_desktop_location ();
     path_bar->priv->home_path = g_file_new_for_path (g_get_home_dir ());
     desktop_is_home = g_file_equal (path_bar->priv->home_path, path_bar->priv->desktop_path);