client: fix test mem leak in attach_rate_tweaking_probe
authorGöran Jönsson <goranjn@axis.com>
Mon, 7 Oct 2019 08:27:36 +0000 (10:27 +0200)
committerGöran Jönsson <goranjn@axis.com>
Mon, 7 Oct 2019 08:49:08 +0000 (10:49 +0200)
tests/check/gst/client.c

index c860417..dd7f5ee 100644 (file)
@@ -1847,6 +1847,7 @@ attach_rate_tweaking_probe (void)
 
   gst_pad_add_probe (srcpad, GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM,
       rate_tweaking_probe, NULL, NULL);
+  gst_object_unref (srcpad);
 }
 
 static void