sizerequest: do not derefence NULL pointers

This commit is contained in:
Stefano Facchini 2012-11-04 17:42:55 +01:00
parent 1beb9db7b0
commit a46368dede

View File

@ -528,8 +528,11 @@ _gtk_widget_compute_size_for_orientation (GtkWidget *widget,
g_hash_table_destroy (widgets);
*minimum = min_result;
*natural = nat_result;
if (minimum)
*minimum = min_result;
if (natural)
*natural = nat_result;
}
/**