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).
+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:
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
iterator (strings[j], user_data);
if (++j == MAX_PATH_SPLIT) {
lastlist = g_strdup (strings[j]);
- g_strfreev (strings);
j = 0;
break;
}