mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Make sure to take a copy of the strings we're going to free later.
This commit is contained in:
parent
45a17154b7
commit
a626dff72c
1 changed files with 3 additions and 3 deletions
|
@ -573,13 +573,13 @@ gst_registry_binary_save_plugin_dep (GList ** list, GstPluginDep * dep)
|
||||||
ed->stat_hash = dep->stat_hash;
|
ed->stat_hash = dep->stat_hash;
|
||||||
|
|
||||||
for (s = dep->env_vars; s != NULL && *s != NULL; ++s, ++ed->n_env_vars)
|
for (s = dep->env_vars; s != NULL && *s != NULL; ++s, ++ed->n_env_vars)
|
||||||
gst_registry_binary_save_string (list, *s);
|
gst_registry_binary_save_string (list, g_strdup (*s));
|
||||||
|
|
||||||
for (s = dep->paths; s != NULL && *s != NULL; ++s, ++ed->n_paths)
|
for (s = dep->paths; s != NULL && *s != NULL; ++s, ++ed->n_paths)
|
||||||
gst_registry_binary_save_string (list, *s);
|
gst_registry_binary_save_string (list, g_strdup (*s));
|
||||||
|
|
||||||
for (s = dep->names; s != NULL && *s != NULL; ++s, ++ed->n_names)
|
for (s = dep->names; s != NULL && *s != NULL; ++s, ++ed->n_names)
|
||||||
gst_registry_binary_save_string (list, *s);
|
gst_registry_binary_save_string (list, g_strdup (*s));
|
||||||
|
|
||||||
*list = g_list_prepend (*list, chk);
|
*list = g_list_prepend (*list, chk);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue