forked from AuroraMiddleware/gtk
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:
parent
5f627a2cb6
commit
6d16f7ad35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user