mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
sizerequest: do not derefence NULL pointers
This commit is contained in:
parent
1beb9db7b0
commit
a46368dede
@ -528,8 +528,11 @@ _gtk_widget_compute_size_for_orientation (GtkWidget *widget,
|
|||||||
|
|
||||||
g_hash_table_destroy (widgets);
|
g_hash_table_destroy (widgets);
|
||||||
|
|
||||||
*minimum = min_result;
|
if (minimum)
|
||||||
*natural = nat_result;
|
*minimum = min_result;
|
||||||
|
|
||||||
|
if (natural)
|
||||||
|
*natural = nat_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user