diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index cd8b8e0277..4ca4fbea3e 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -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,