mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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)
|
pad_free_cache (GstPadPushCache * cache)
|
||||||
{
|
{
|
||||||
gst_object_unref (cache->peer);
|
gst_object_unref (cache->peer);
|
||||||
gst_caps_unref (cache->caps);
|
if (cache->caps)
|
||||||
|
gst_caps_unref (cache->caps);
|
||||||
g_slice_free (GstPadPushCache, cache);
|
g_slice_free (GstPadPushCache, cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue