set freed caps to NULL

Original commit message from CVS:
set freed caps to NULL
This commit is contained in:
Benjamin Otte 2003-12-27 14:09:51 +00:00
parent 9df878658c
commit f98a10e5d0

View file

@ -1837,6 +1837,7 @@ gst_pad_link_unnegotiate (GstPadLink *link)
{ {
if (link->caps) { if (link->caps) {
gst_caps_free (link->caps); gst_caps_free (link->caps);
link->caps = NULL;
if (GST_RPAD_LINK (link->srcpad) != link) { if (GST_RPAD_LINK (link->srcpad) != link) {
g_warning ("unnegotiating unset link"); g_warning ("unnegotiating unset link");
} else { } else {