gst/gstplugin.c: Replace strdup by g_strdup as suggested by Ser-ver.

Original commit message from CVS:
* gst/gstplugin.c: (gst_plugin_load_file):
Replace strdup by g_strdup as suggested by Ser-ver.
This commit is contained in:
Wim Taymans 2006-01-05 10:43:02 +00:00
parent 9bb3d2f403
commit 80d706f806
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-01-05 Wim Taymans <wim@fluendo.com>
* gst/gstplugin.c: (gst_plugin_load_file):
Replace strdup by g_strdup.
2006-01-05 Thomas Vander Stichele <thomas at apestaart dot org>
* docs/pwg/advanced-types.xml:

View file

@ -417,7 +417,7 @@ gst_plugin_load_file (const gchar * filename, GError ** error)
plugin = g_object_new (GST_TYPE_PLUGIN, NULL);
plugin->module = module;
plugin->filename = strdup (filename);
plugin->filename = g_strdup (filename);
plugin->basename = g_path_get_basename (filename);
plugin->file_mtime = file_status.st_mtime;
plugin->file_size = file_status.st_size;