From f9dfd1effb6cb01ee4fc1d3b2050c3f0356c3bf3 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 12 Jan 2011 16:55:07 +0200 Subject: [PATCH] asfmux: use g_error_free instead of g_free --- gst/asfmux/gstasfmux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/asfmux/gstasfmux.c b/gst/asfmux/gstasfmux.c index 3c8921f4c7..2e85e1ae2e 100644 --- a/gst/asfmux/gstasfmux.c +++ b/gst/asfmux/gstasfmux.c @@ -919,7 +919,7 @@ gst_asf_mux_write_string_with_size (GstAsfMux * asfmux, if (error) { GST_WARNING_OBJECT (asfmux, "Error converting string " "to UTF-16: %s - %s", str, error->message); - g_free (error); + g_error_free (error); memset (str_buf, 0, str_size); } else { /* HACK: g_convert seems to add only a single byte null char to