0
0
Fork 0
mirror of https://git.code.sf.net/p/quake/quakeforge synced 2025-03-21 18:01:15 +00:00

plug a leak

This commit is contained in:
Bill Currie 2005-05-07 07:38:04 +00:00
parent a87a77e7a5
commit 0cbfc6f801

View file

@ -141,12 +141,12 @@ GIB_Method_Build_Hash (gib_class_t *class, hashtab_t *inherited,
}
if (inherited) {
void **list;
void **list, **l;
for (list = Hash_GetList (inherited); *list; list++)
if (!Hash_Find (new, GIB_Method_Get_Key (*list,
NULL)))
Hash_Add (new, *list);
for (l = list = Hash_GetList (inherited); *l; l++)
if (!Hash_Find (new, GIB_Method_Get_Key (*l, NULL)))
Hash_Add (new, *l);
free (list);
}
return new;