Commit 995cc8d8 authored by Ernestas Kulik's avatar Ernestas Kulik 🦑

window-slot: Use g_clear_object()

parent eed03d4f
Pipeline #73320 failed with stages
in 8 minutes and 26 seconds
......@@ -3012,8 +3012,7 @@ nautilus_window_slot_switch_new_content_view (NautilusWindowSlot *self)
g_binding_unbind (priv->templates_menu_binding);
widget = GTK_WIDGET (priv->content_view);
gtk_widget_destroy (widget);
g_object_unref (priv->content_view);
priv->content_view = NULL;
g_clear_object (&priv->content_view);
if (priv->new_content_view != NULL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment