From: Benjamin Otte Date: Wed, 21 Apr 2004 22:56:59 +0000 (+0000) Subject: gst/gstparse.c: Free the GString used in _gst_parse_escape() X-Git-Tag: RELEASE-0_8_2~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15e8b2cfc79ff9f54250b14e94e37005c14f96a0;p=platform%2Fupstream%2Fgstreamer.git gst/gstparse.c: Free the GString used in _gst_parse_escape() Original commit message from CVS: reviewed by Benjamin Otte * gst/gstparse.c: (_gst_parse_escape): Free the GString used in _gst_parse_escape() --- diff --git a/ChangeLog b/ChangeLog index 59ada1c..f1e907f 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 065e3d5..43b3534 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; } /**