mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
GtkTreeView: plug a leaking GtkTreeRowReference
This is exposed by overshooting in a HildonPannableArea. Leaking a GtkTreeRowReference also means leaking the whole model, since the GtkTreeModel reference count is increased for each row reference. Fixes bug #607770 - Leak in GtkTreeView with HildonPannableArea
This commit is contained in:
parent
3c618f2f1f
commit
52acceef56
@ -6479,8 +6479,7 @@ gtk_tree_view_dy_to_top_row (GtkTreeView *tree_view)
|
||||
|
||||
if (tree == NULL)
|
||||
{
|
||||
tree_view->priv->top_row = NULL;
|
||||
tree_view->priv->top_row_dy = 0;
|
||||
gtk_tree_view_set_top_row (tree_view, NULL, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user