test: tempochange: Plug leak

CID: 1455448
This commit is contained in:
Thibault Saunier 2020-04-09 10:54:26 -04:00
parent 86c2681da6
commit 5dd4175fc3

View file

@ -132,11 +132,11 @@ static Suite *
ges_suite (void)
{
Suite *s = suite_create ("ges");
TCase *tc_chain = tcase_create ("tempochange");
GstPluginFeature *pitch = gst_registry_find_feature (gst_registry_get (),
"pitch", GST_TYPE_ELEMENT_FACTORY);
if (pitch) {
TCase *tc_chain = tcase_create ("tempochange");
gst_object_unref (pitch);
suite_add_tcase (s, tc_chain);