headerbar: Replace gtk_widget_destroy() call

This commit is contained in:
Timm Bäder 2020-02-21 13:04:44 +01:00
parent ff4a33b69b
commit 549a3a81ae

View File

@ -386,7 +386,8 @@ _gtk_header_bar_update_window_buttons (GtkHeaderBar *bar)
if (!_gtk_header_bar_update_window_icon (bar, window))
{
gtk_widget_destroy (button);
g_object_ref_sink (button);
g_object_unref (button);
priv->titlebar_icon = NULL;
button = NULL;
}