set freed caps to NULL
authorBenjamin Otte <otte@gnome.org>
Sat, 27 Dec 2003 14:09:51 +0000 (14:09 +0000)
committerBenjamin Otte <otte@gnome.org>
Sat, 27 Dec 2003 14:09:51 +0000 (14:09 +0000)
Original commit message from CVS:
set freed caps to NULL

gst/gstpad.c

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