Commit 7268e3f4 authored by Alexander Larsson's avatar Alexander Larsson

Don't leak sidebar widgets

Sidebar widgets are normal widgets these days and should be standard
floating stuff owned by the container they end up with. So, we
should no longer ref_sink them.
parent d781d414
......@@ -3350,7 +3350,6 @@ nautilus_places_sidebar_new (NautilusWindow *window)
sidebar = g_object_new (nautilus_places_sidebar_get_type (), NULL);
nautilus_places_sidebar_set_parent_window (sidebar, window);
g_object_ref_sink (sidebar);
return GTK_WIDGET (sidebar);
}
......
......@@ -1639,7 +1639,6 @@ nautilus_tree_sidebar_new (NautilusWindow *window)
sidebar = g_object_new (fm_tree_view_get_type (), NULL);
fm_tree_view_set_parent_window (sidebar, window);
g_object_ref_sink (sidebar);
return GTK_WIDGET (sidebar);
}
......
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