diff --git a/ChangeLog b/ChangeLog index 59ada1c38b..f1e907f0de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-04-22 Sebastien Cote + + reviewed by Benjamin Otte + + * gst/gstparse.c: (_gst_parse_escape): + Free the GString used in _gst_parse_escape() + 2004-04-21 Benjamin Otte * gst/gstpad.c: (gst_pad_link_negotiate): diff --git a/gst/gstparse.c b/gst/gstparse.c index 065e3d5b2a..43b35340bd 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -44,6 +44,7 @@ static gchar * _gst_parse_escape (const gchar * str) { GString *gstr = NULL; + gchar *newstr = NULL; g_return_val_if_fail (str != NULL, NULL); @@ -56,7 +57,10 @@ _gst_parse_escape (const gchar * str) str++; } - return gstr->str; + newstr = gstr->str; + g_string_free (gstr, FALSE); + + return newstr; } /**