aggregator: Fix leak in unit test
authorSebastian Dröge <sebastian@centricular.com>
Mon, 28 Mar 2016 10:52:07 +0000 (13:52 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 28 Mar 2016 10:52:07 +0000 (13:52 +0300)
GST_PAD_PROBE_HANDLED means that we should've unreffed the probe data,
it was handled by us in one way or another.

tests/check/libs/aggregator.c

index 877c4fb..5f6ae2e 100644 (file)
@@ -342,6 +342,8 @@ downstream_probe_cb (GstPad * pad, GstPadProbeInfo * info, TestData * test)
       g_atomic_int_inc (&test->flush_stop_events);
   }
 
+  gst_mini_object_unref (info->data);
+
   return GST_PAD_PROBE_HANDLED;
 }