Free GLists with g_list_free()
This commit is contained in:
parent
9736c1fa73
commit
65bbd8724b
|
@ -94,7 +94,7 @@ static int _iconlist_list(GtkIconTheme * icontheme)
|
||||||
g_free(sizes);
|
g_free(sizes);
|
||||||
}
|
}
|
||||||
g_list_foreach(list, (GFunc)g_free, NULL);
|
g_list_foreach(list, (GFunc)g_free, NULL);
|
||||||
g_free(list);
|
g_list_free(list);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -206,7 +206,7 @@ static void _do_iconview(GtkWidget * iconview, GtkIconTheme * icontheme)
|
||||||
COL_NAME, p->data, COL_PIXBUF, pixbuf, -1);
|
COL_NAME, p->data, COL_PIXBUF, pixbuf, -1);
|
||||||
g_free(p->data);
|
g_free(p->data);
|
||||||
}
|
}
|
||||||
g_free(list);
|
g_list_free(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user