forked from AuroraMiddleware/gtk
Fixed: Don’t dereference before typechecking
This commit is contained in:
parent
c4b75b0fff
commit
567ef528e5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user