Minor optimization
This commit is contained in:
parent
a36bccf800
commit
40268b3fc1
|
@ -81,9 +81,10 @@ static int _iconlist_list(GtkIconTheme * icontheme)
|
||||||
return 1;
|
return 1;
|
||||||
for(p = list; p != NULL; p = p->next)
|
for(p = list; p != NULL; p = p->next)
|
||||||
{
|
{
|
||||||
printf("%s:", (char*)p->data);
|
printf("%s:", (char *)p->data);
|
||||||
if((sizes = gtk_icon_theme_get_icon_sizes(icontheme, p->data))
|
sizes = gtk_icon_theme_get_icon_sizes(icontheme, p->data);
|
||||||
== NULL)
|
g_free(p->data);
|
||||||
|
if(sizes == NULL)
|
||||||
{
|
{
|
||||||
puts(" unknown");
|
puts(" unknown");
|
||||||
continue;
|
continue;
|
||||||
|
@ -93,7 +94,6 @@ static int _iconlist_list(GtkIconTheme * icontheme)
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
g_free(sizes);
|
g_free(sizes);
|
||||||
}
|
}
|
||||||
g_list_foreach(list, (GFunc)g_free, NULL);
|
|
||||||
g_list_free(list);
|
g_list_free(list);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user