textview: use g_slice_new0 for proper initial state

This fixes the missuse of the GList embedded node for prev/next.
This commit is contained in:
Christian Hergert 2019-11-01 11:32:31 -07:00
parent 5f627a2cb6
commit 6d16f7ad35

View File

@ -9293,7 +9293,7 @@ anchored_child_new (GtkWidget *child,
{
AnchoredChild *vc;
vc = g_slice_new (AnchoredChild);
vc = g_slice_new0 (AnchoredChild);
vc->link.data = vc;
vc->widget = g_object_ref (child);
vc->anchor = g_object_ref (anchor);