mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
remove the FIXMEs. plist takes ownership of the item
This commit is contained in:
parent
e455b760ca
commit
e8fb5ba83b
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ PL_D_AddObject (plitem_t *dict, plitem_t *key, plitem_t *value)
|
|||
|
||||
if ((k = Hash_Find ((hashtab_t *)dict->data, key->data))) {
|
||||
PL_Free ((plitem_t *) k->value);
|
||||
k->value = value; // FIXME: should this be a copy?
|
||||
k->value = value;
|
||||
} else {
|
||||
k = malloc (sizeof (dictkey_t));
|
||||
|
||||
|
@ -211,7 +211,7 @@ PL_D_AddObject (plitem_t *dict, plitem_t *key, plitem_t *value)
|
|||
return NULL;
|
||||
|
||||
k->key = strdup ((char *) key->data);
|
||||
k->value = value; // FIXME: see above
|
||||
k->value = value;
|
||||
|
||||
Hash_Add ((hashtab_t *)dict->data, k);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue