From 8abc14052ad50e55643dc37cd5480b6beaea02bf Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 13 Oct 2010 02:20:43 +0200 Subject: [PATCH] pad: don't unref NULL caps --- gst/gstpad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index a365c3b7ba..dee643792a 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -4542,7 +4542,8 @@ static void pad_free_cache (GstPadPushCache * cache) { gst_object_unref (cache->peer); - gst_caps_unref (cache->caps); + if (cache->caps) + gst_caps_unref (cache->caps); g_slice_free (GstPadPushCache, cache); }