gst/gstparse.c: Free the GString used in _gst_parse_escape()
authorBenjamin Otte <otte@gnome.org>
Wed, 21 Apr 2004 22:56:59 +0000 (22:56 +0000)
committerBenjamin Otte <otte@gnome.org>
Wed, 21 Apr 2004 22:56:59 +0000 (22:56 +0000)
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()

ChangeLog
gst/gstparse.c

index 59ada1c..f1e907f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 065e3d5..43b3534 100644 (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;
 }
 
 /**