[nautilus/wip/oholy/cloudproviders: 25/28] sidebar: Don't unref NULL pointer




commit 2e48a8dffdd477db2aebe4f912cfccd1d322de72
Author: Ondrej Holy <oholy redhat com>
Date:   Sat Aug 6 08:03:30 2022 +0200

    sidebar: Don't unref NULL pointer

 src/gtk/nautilusgtkplacessidebar.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtk/nautilusgtkplacessidebar.c b/src/gtk/nautilusgtkplacessidebar.c
index ae3df690d..19212d199 100644
--- a/src/gtk/nautilusgtkplacessidebar.c
+++ b/src/gtk/nautilusgtkplacessidebar.c
@@ -900,7 +900,7 @@ create_cloud_provider_account_row (NautilusGtkPlacesSidebar      *sidebar,
 
       g_free (tooltip);
       g_free (mount_uri);
-      g_object_unref (end_icon);
+      g_clear_object (&end_icon);
       return TRUE;
     }
   else


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