Throw in some casts to squelch warnings, at least with some compilers
(the values are const because nobody's supposed to modify them once they've been allocated, but they *can* be freed - by us - when we're done with them). svn path=/trunk/; revision=14936
This commit is contained in:
parent
ee55c8a608
commit
8e4007ef27
|
@ -268,9 +268,9 @@ gboolean destroy_attrs(gpointer k _U_, gpointer v, gpointer p _U_) {
|
|||
g_free(a->name);
|
||||
if (a->vs) {
|
||||
for(i=0; a->vs[i].strptr; i++) {
|
||||
g_free(a->vs[i].strptr); /* fake const warning */
|
||||
g_free((void *)a->vs[i].strptr);
|
||||
}
|
||||
g_free(a->vs);
|
||||
g_free((void *)a->vs);
|
||||
}
|
||||
g_free(a);
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue