GtkStyle: Protect against padding being NULL

This commit is contained in:
Carlos Garnacho 2010-09-11 12:10:50 +02:00
parent 9f84e101bf
commit 77ccdfc94e

View File

@ -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