mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 23:10:22 +00:00
GtkStyle: Protect against padding being NULL
This commit is contained in:
parent
9f84e101bf
commit
77ccdfc94e
@ -705,10 +705,13 @@ gtk_style_update_from_context (GtkStyle *style)
|
||||
"padding", &padding,
|
||||
NULL);
|
||||
|
||||
style->xthickness = padding->left;
|
||||
style->ythickness = padding->top;
|
||||
if (padding)
|
||||
{
|
||||
style->xthickness = padding->left;
|
||||
style->ythickness = padding->top;
|
||||
|
||||
gtk_border_free (padding);
|
||||
gtk_border_free (padding);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user