gst/gstparse.c: Free the GString used in _gst_parse_escape()

Original commit message from CVS:
reviewed by Benjamin Otte  <otte@gnome.org>
* gst/gstparse.c: (_gst_parse_escape):
Free the GString used in _gst_parse_escape()
This commit is contained in:
Benjamin Otte 2004-04-21 22:56:59 +00:00
parent a3cb86522a
commit 15e8b2cfc7
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-04-22 Sebastien Cote <sc5@hermes.usherb.ca>
reviewed by Benjamin Otte <otte@gnome.org>
* gst/gstparse.c: (_gst_parse_escape):
Free the GString used in _gst_parse_escape()
2004-04-21 Benjamin Otte <in7y118@public.uni-hamburg.de>
* gst/gstpad.c: (gst_pad_link_negotiate):

View file

@ -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;
}
/**