mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
subparse: factor memory freeing
This commit is contained in:
parent
17ea0308cf
commit
2de0a62381
1 changed files with 1 additions and 2 deletions
|
@ -1719,12 +1719,11 @@ gst_subparse_type_find (GstTypeFind * tf, gpointer private)
|
|||
GST_DEBUG ("Encoding '%s' detected but conversion failed: %s", encoding,
|
||||
err->message);
|
||||
g_error_free (err);
|
||||
g_free (encoding);
|
||||
} else {
|
||||
g_free (str);
|
||||
str = converted_str;
|
||||
g_free (encoding);
|
||||
}
|
||||
g_free (encoding);
|
||||
}
|
||||
|
||||
/* Check if at least the first 120 chars are valid UTF8,
|
||||
|
|
Loading…
Reference in a new issue