Fixed: Don’t dereference before typechecking

This commit is contained in:
Daniel Boles 2017-10-13 09:49:34 +01:00
parent c4b75b0fff
commit 567ef528e5

View File

@ -230,12 +230,14 @@ gtk_fixed_put (GtkFixed *fixed,
gint x,
gint y)
{
GtkFixedPrivate *priv = fixed->priv;
GtkFixedPrivate *priv;
GtkFixedChild *child_info;
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (GTK_IS_WIDGET (widget));
priv = fixed->priv;
child_info = g_new (GtkFixedChild, 1);
child_info->widget = widget;
child_info->x = x;