gst/gstregistry.c: When replacing an existing feature in the registry, make sure...
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 31 Jul 2007 11:51:38 +0000 (11:51 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 31 Jul 2007 11:51:38 +0000 (11:51 +0000)
commit0bc0a5a622c547cfde204766d72f44dc7c435afd
tree12b40109de49294036029a7c36c7449fbbd7b4fc
parent54852ef3768fd207e07b95eee41646831d994971
gst/gstregistry.c: When replacing an existing feature in the registry, make sure to continue holding a reference unti...

Original commit message from CVS:
* gst/gstregistry.c: (gst_registry_add_feature):
When replacing an existing feature in the registry, make sure to
continue holding a reference until we've replaced the name string
within our feature hash table. Make sure to use g_hash_table_replace
instead of g_hash_table_insert to ensure the new name string is used
as a key instead of the old one that we're about to free.
Fixes: #462085
ChangeLog
gst/gstregistry.c