mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
asfmux: use g_error_free instead of g_free
This commit is contained in:
parent
d63365fc5b
commit
f9dfd1effb
1 changed files with 1 additions and 1 deletions
|
@ -919,7 +919,7 @@ gst_asf_mux_write_string_with_size (GstAsfMux * asfmux,
|
||||||
if (error) {
|
if (error) {
|
||||||
GST_WARNING_OBJECT (asfmux, "Error converting string "
|
GST_WARNING_OBJECT (asfmux, "Error converting string "
|
||||||
"to UTF-16: %s - %s", str, error->message);
|
"to UTF-16: %s - %s", str, error->message);
|
||||||
g_free (error);
|
g_error_free (error);
|
||||||
memset (str_buf, 0, str_size);
|
memset (str_buf, 0, str_size);
|
||||||
} else {
|
} else {
|
||||||
/* HACK: g_convert seems to add only a single byte null char to
|
/* HACK: g_convert seems to add only a single byte null char to
|
||||||
|
|
Loading…
Reference in a new issue