diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-10-13 02:20:43 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2010-12-03 11:28:52 +0100 |
commit | 8abc14052ad50e55643dc37cd5480b6beaea02bf (patch) | |
tree | 56d67399a725cf6d201aed3579e4629679dc7e6f /gst | |
parent | 14542a0d46efd5b9071575fdeaafd36e3dd87a07 (diff) |
pad: don't unref NULL caps
Diffstat (limited to 'gst')
-rw-r--r-- | gst/gstpad.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |