[nautilus/wip/oholy/cloudproviders: 2/5] sidebar: Don't unref NULL pointer




commit 023ea56a7248abee75eb2372fd44ff9566f5f054
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]