Fixed: Don’t dereference before typechecking

This commit is contained in:
Daniel Boles 2017-10-13 09:49:34 +01:00
parent 3a91d36913
commit 9dde11bdea

View File

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