gst/gstpad.c: Really unlink the peer pad instead of setting the peer pointer to NULL...
authorWim Taymans <wim.taymans@gmail.com>
Fri, 21 Dec 2007 13:54:07 +0000 (13:54 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 21 Dec 2007 13:54:07 +0000 (13:54 +0000)
commit96d28a501ffd501c94de32ddf416d26dc63f358c
tree8a9546af441a1afb01c069c7ebcd4837a6abab67
parentb0ba7ff0317312039154c34b6ddd3211ccb59257
gst/gstpad.c: Really unlink the peer pad instead of setting the peer pointer to NULL when we dispose the pad.

Original commit message from CVS:
* gst/gstpad.c: (gst_pad_dispose):
Really unlink the peer pad instead of setting the peer pointer to NULL
when we dispose the pad.
This correctly calls the unlink functions and makes sure that the peer
does not have a handle to invalid memory. See #504671.
* tests/check/gst/gstpad.c: (GST_START_TEST), (gst_pad_suite):
Add testsuite for above case.
ChangeLog
gst/gstpad.c
tests/check/gst/gstpad.c