forked from AuroraMiddleware/gtk
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