From 621705f475bc93695e5a2105eb4aee5296bfe015 Mon Sep 17 00:00:00 2001 From: Reuben Dowle Date: Wed, 17 Mar 2010 19:24:27 -0300 Subject: [PATCH] ximagesink: Fix caps leak Unref caps when peer doesn't accept caps Fixes #613198 --- sys/ximage/ximagesink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 629ba63730..0d6a6c868d 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -1864,6 +1864,7 @@ gst_ximagesink_buffer_alloc (GstBaseSink * bsink, guint64 offset, guint size, desired_caps); /* we alloc a buffer with the original incomming caps already in the * width and height variables */ + gst_caps_unref (desired_caps); } }