gst/gstcaps.c: Fix memleak.

Original commit message from CVS:
* gst/gstcaps.c: (gst_caps_save_thyself), (gst_caps_load_thyself):
Fix memleak.
This commit is contained in:
David Schleef 2004-07-06 22:33:04 +00:00
parent c6e70cad66
commit 1c8590f341
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2004-07-06 David Schleef <ds@schleef.org>
* gst/gstcaps.c: (gst_caps_save_thyself), (gst_caps_load_thyself):
Fix memleak.
2004-07-06 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstplugin.c: (gst_plugin_check_file), (gst_plugin_load_file):

View file

@ -1294,7 +1294,10 @@ gst_caps_do_simplify (GstCaps * caps)
xmlNodePtr
gst_caps_save_thyself (const GstCaps * caps, xmlNodePtr parent)
{
xmlNewChild (parent, NULL, "caps", gst_caps_to_string (caps));
char *s = gst_caps_to_string (caps);
xmlNewChild (parent, NULL, "caps", s);
g_free (s);
return parent;
}