diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 21:26:21 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | edec775e268158a86b92566890925d0a0864ef81 (patch) | |
tree | a04452ff243c99c02ea0154b207b9dbd9ec05825 | |
parent | 48c4362cdc3230dd0a107d3f15cc483b149d23be (diff) |
matroska/read-common: remove unnecessary NULL checks before g_free()
-rw-r--r-- | gst/matroska/matroska-read-common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/matroska/matroska-read-common.c b/gst/matroska/matroska-read-common.c index 537fed98c..691d4629a 100644 --- a/gst/matroska/matroska-read-common.c +++ b/gst/matroska/matroska-read-common.c @@ -815,8 +815,7 @@ 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); + g_free (*target_type); *target_type = str; } break; @@ -1258,8 +1257,7 @@ gst_matroska_read_common_parse_header (GstMatroskaReadCommon * common, GST_DEBUG_OBJECT (common->sinkpad, "EbmlDocType: %s", GST_STR_NULL (text)); - if (doctype) - g_free (doctype); + g_free (doctype); doctype = text; break; } |