mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
protection: Release decryptors list, even if it's empty
https://bugzilla.gnome.org/show_bug.cgi?id=796651
This commit is contained in:
parent
2db8e3705f
commit
cc55b304ef
1 changed files with 3 additions and 2 deletions
|
@ -215,7 +215,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
|
||||||
system_identifiers)
|
system_identifiers)
|
||||||
{
|
{
|
||||||
GList *decryptors, *walk;
|
GList *decryptors, *walk;
|
||||||
gchar **retval;
|
gchar **retval = NULL;
|
||||||
guint i = 0, decryptors_number;
|
guint i = 0, decryptors_number;
|
||||||
|
|
||||||
decryptors =
|
decryptors =
|
||||||
|
@ -227,7 +227,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
|
||||||
GST_TRACE ("found %u decrytors", decryptors_number);
|
GST_TRACE ("found %u decrytors", decryptors_number);
|
||||||
|
|
||||||
if (decryptors_number == 0)
|
if (decryptors_number == 0)
|
||||||
return NULL;
|
goto beach;
|
||||||
|
|
||||||
retval = g_new (gchar *, decryptors_number + 1);
|
retval = g_new (gchar *, decryptors_number + 1);
|
||||||
|
|
||||||
|
@ -250,6 +250,7 @@ gst_protection_filter_systems_by_available_decryptors (const gchar **
|
||||||
retval = NULL;
|
retval = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
beach:
|
||||||
gst_plugin_feature_list_free (decryptors);
|
gst_plugin_feature_list_free (decryptors);
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
|
|
Loading…
Reference in a new issue