tee: Check for the removed pad flag also in the slow pushing path
[platform/upstream/gstreamer.git] / gst / gstpromise.c
index 55f5149..e8e971a 100644 (file)
@@ -335,6 +335,10 @@ gst_promise_free (GstMiniObject * object)
   g_cond_clear (GST_PROMISE_COND (promise));
   GST_LOG ("%p finalized", promise);
 
+#ifdef USE_POISONING
+  memset (promise, 0xff, sizeof (GstPromiseImpl));
+#endif
+
   g_free (promise);
 }