mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
matroska/read-common: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
48c4362cdc
commit
edec775e26
1 changed files with 2 additions and 4 deletions
|
@ -815,7 +815,6 @@ gst_matroska_read_common_parse_metadata_targets (GstMatroskaReadCommon * common,
|
|||
|
||||
case GST_MATROSKA_ID_TARGETTYPE:
|
||||
if ((ret = gst_ebml_read_ascii (ebml, &id, &str)) == GST_FLOW_OK) {
|
||||
if (*target_type != NULL)
|
||||
g_free (*target_type);
|
||||
*target_type = str;
|
||||
}
|
||||
|
@ -1258,7 +1257,6 @@ gst_matroska_read_common_parse_header (GstMatroskaReadCommon * common,
|
|||
GST_DEBUG_OBJECT (common->sinkpad, "EbmlDocType: %s",
|
||||
GST_STR_NULL (text));
|
||||
|
||||
if (doctype)
|
||||
g_free (doctype);
|
||||
doctype = text;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue