projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2db8e37
)
protection: Release decryptors list, even if it's empty
author
Philippe Normand
<philn@igalia.com>
Fri, 22 Jun 2018 14:35:42 +0000
(15:35 +0100)
committer
Philippe Normand
<philn@igalia.com>
Mon, 25 Jun 2018 15:38:13 +0000
(16:38 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=796651
gst/gstprotection.c
patch
|
blob
|
history
diff --git
a/gst/gstprotection.c
b/gst/gstprotection.c
index 3da4013bab8a56b890fc31a70443115dc091dcc9..af0434a2b7ac26f13d7c6fbcec4338dc5959ce34 100644
(file)
--- a/
gst/gstprotection.c
+++ b/
gst/gstprotection.c
@@
-215,7
+215,7
@@
gst_protection_filter_systems_by_available_decryptors (const gchar **
system_identifiers)
{
GList *decryptors, *walk;
- gchar **retval;
+ gchar **retval
= NULL
;
guint i = 0, decryptors_number;
decryptors =
@@
-227,7
+227,7
@@
gst_protection_filter_systems_by_available_decryptors (const gchar **
GST_TRACE ("found %u decrytors", decryptors_number);
if (decryptors_number == 0)
-
return NULL
;
+
goto beach
;
retval = g_new (gchar *, decryptors_number + 1);
@@
-250,6
+250,7
@@
gst_protection_filter_systems_by_available_decryptors (const gchar **
retval = NULL;
}
+beach:
gst_plugin_feature_list_free (decryptors);
return retval;