tests: fix leak in ghostpad unit test

The created pad is never used and overwritten with
another newly-created pad a few lines below.
This commit is contained in:
Tim-Philipp Müller 2013-01-05 16:30:04 +00:00
parent 1506784215
commit e9497b7bf0

View file

@ -1133,7 +1133,6 @@ GST_START_TEST (test_ghost_pads_remove_while_playing)
bin = gst_bin_new (NULL); bin = gst_bin_new (NULL);
gst_element_set_state (bin, GST_STATE_PLAYING); gst_element_set_state (bin, GST_STATE_PLAYING);
sinkpad = gst_pad_new ("sink", GST_PAD_SINK);
ghostsrc = gst_ghost_pad_new_no_target ("ghostsrc", GST_PAD_SRC); ghostsrc = gst_ghost_pad_new_no_target ("ghostsrc", GST_PAD_SRC);
sinkpad = GST_PAD (gst_proxy_pad_get_internal (GST_PROXY_PAD (ghostsrc))); sinkpad = GST_PAD (gst_proxy_pad_get_internal (GST_PROXY_PAD (ghostsrc)));