forked from AuroraMiddleware/gtk
testtreeview: Fix 19 year old use-after-free
This commit is contained in:
parent
03e7c7fab1
commit
3b8d9dbd28
@ -1019,8 +1019,8 @@ gtk_real_model_types_iter_next (GtkTreeModel *tree_model,
|
|||||||
|
|
||||||
if (children[i] != G_TYPE_INVALID)
|
if (children[i] != G_TYPE_INVALID)
|
||||||
{
|
{
|
||||||
g_free (children);
|
|
||||||
iter->user_data = GINT_TO_POINTER (children[i]);
|
iter->user_data = GINT_TO_POINTER (children[i]);
|
||||||
|
g_free (children);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user