mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-08 12:51:21 +00:00
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:
parent
c6e70cad66
commit
1c8590f341
2 changed files with 9 additions and 1 deletions
|
@ -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):
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue