mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
pad: don't unref NULL caps
This commit is contained in:
parent
14542a0d46
commit
8abc14052a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue