From 15e8b2cfc79ff9f54250b14e94e37005c14f96a0 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 21 Apr 2004 22:56:59 +0000 Subject: [PATCH] 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() --- ChangeLog | 7 +++++++ gst/gstparse.c | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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; } /**