mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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))) {
|
if ((k = Hash_Find ((hashtab_t *)dict->data, key->data))) {
|
||||||
PL_Free ((plitem_t *) k->value);
|
PL_Free ((plitem_t *) k->value);
|
||||||
k->value = value; // FIXME: should this be a copy?
|
k->value = value;
|
||||||
} else {
|
} else {
|
||||||
k = malloc (sizeof (dictkey_t));
|
k = malloc (sizeof (dictkey_t));
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ PL_D_AddObject (plitem_t *dict, plitem_t *key, plitem_t *value)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
k->key = strdup ((char *) key->data);
|
k->key = strdup ((char *) key->data);
|
||||||
k->value = value; // FIXME: see above
|
k->value = value;
|
||||||
|
|
||||||
Hash_Add ((hashtab_t *)dict->data, k);
|
Hash_Add ((hashtab_t *)dict->data, k);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue