mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-08 11:40:16 +00:00
Fixed: Don’t dereference before typechecking
This commit is contained in:
parent
3a91d36913
commit
9dde11bdea
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user