mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
gst/gst.c: Fix missing g_strdup() and double free when using the
Original commit message from CVS: Patch by: Peter Kjellerstedt <pkj at axis com> * gst/gst.c: (prepare_for_load_plugin_func), (split_and_iterate): Fix missing g_strdup() and double free when using the --gst-plugin-load command line option (#346097).
This commit is contained in:
parent
541eba03a4
commit
3800e5ac9c
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2006-06-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
Patch by: Peter Kjellerstedt <pkj at axis com>
|
||||
|
||||
* gst/gst.c: (prepare_for_load_plugin_func), (split_and_iterate):
|
||||
Fix missing g_strdup() and double free when using the
|
||||
--gst-plugin-load command line option (#346097).
|
||||
|
||||
2006-06-23 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/gstinfo.c:
|
||||
|
|
|
@ -407,7 +407,7 @@ add_path_func (gpointer data, gpointer user_data)
|
|||
static void
|
||||
prepare_for_load_plugin_func (gpointer data, gpointer user_data)
|
||||
{
|
||||
preload_plugins = g_slist_prepend (preload_plugins, data);
|
||||
preload_plugins = g_slist_prepend (preload_plugins, g_strdup (data));
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -455,7 +455,6 @@ split_and_iterate (const gchar * stringlist, gchar * separator, GFunc iterator,
|
|||
iterator (strings[j], user_data);
|
||||
if (++j == MAX_PATH_SPLIT) {
|
||||
lastlist = g_strdup (strings[j]);
|
||||
g_strfreev (strings);
|
||||
j = 0;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue