discoverer: fix potential tag list leaks
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 10 Jan 2012 18:07:19 +0000 (18:07 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 10 Jan 2012 18:29:21 +0000 (18:29 +0000)
commit5f20af6ce537c2b079ca866ccd5dea589ea1be5f
tree8488ddb79db695c50bd9bd489ca264553b6e0e3a
parentb794f78d267737c3c4b8ce58370c3182d403a28a
discoverer: fix potential tag list leaks

Not that I have ever seen these in practice, but if they
can't happen we may just as well just assign the new tag
list. Merge properly to be on the safe side, and also
avoid a useless tag list copy in the normal case where
there is no tag list yet.
gst-libs/gst/pbutils/gstdiscoverer.c