pad: don't unref NULL caps

This commit is contained in:
Wim Taymans 2010-10-13 02:20:43 +02:00
parent 14542a0d46
commit 8abc14052a

View file

@ -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);
}