forked from AuroraMiddleware/gtk
treeviewcolumn: Don't leak button
We g_object_ref_sink the button in _create_button, so we need to unref it ourselves.
This commit is contained in:
parent
d292ebc7bd
commit
2c28c627c1
@ -1336,6 +1336,7 @@ _gtk_tree_view_column_unset_tree_view (GtkTreeViewColumn *column)
|
||||
if (priv->tree_view)
|
||||
{
|
||||
gtk_container_remove (GTK_CONTAINER (priv->tree_view), priv->button);
|
||||
g_clear_object (&priv->button);
|
||||
}
|
||||
if (priv->property_changed_signal)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user