tiny bit of code polish

This commit is contained in:
Sergey V. Udaltsov 2005-07-27 22:50:42 +00:00
parent 9a3665ee0b
commit 79faf3a3c9

View file

@ -84,16 +84,13 @@ xkb_layout_preview_update (GladeXML * chooserDialog)
if (XklConfigGetFromServer (&data))
{
if( ( p = data.layouts ) != NULL )
{
for( i = data.numLayouts; --i >= 0; )
free( *p++ );
}
if( ( p = data.variants ) != NULL )
{
for( i = data.numVariants; --i >= 0; )
free( *p++ );
}
data.numLayouts =
data.numVariants = 1;
data.layouts = realloc (data.layouts, sizeof (char*));