diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-14 20:43:10 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-15 01:43:08 -0800 |
commit | 48c4362cdc3230dd0a107d3f15cc483b149d23be (patch) | |
tree | 07b99e230b9494d0956d714283d4d19ab5da66ef | |
parent | 5367b266539dfab4f33c4a25da7d484c6647578c (diff) |
isomp4/atoms: remove unnecessary NULL checks before g_free()
-rw-r--r-- | gst/isomp4/atoms.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gst/isomp4/atoms.c b/gst/isomp4/atoms.c index 267c4f092..84b3d807e 100644 --- a/gst/isomp4/atoms.c +++ b/gst/isomp4/atoms.c @@ -2965,9 +2965,7 @@ atom_trak_tx3g_update_dimension (AtomTRAK * trak, guint32 width, guint32 height) static void atom_tag_data_alloc_data (AtomTagData * data, guint size) { - if (data->data != NULL) { - g_free (data->data); - } + g_free (data->data); data->data = g_new0 (guint8, size); data->datalen = size; } @@ -3185,8 +3183,7 @@ atom_hdlr_set_type (AtomHDLR * hdlr, AtomsContext * context, guint32 comp_type, static void atom_hdlr_set_name (AtomHDLR * hdlr, const char *name) { - if (hdlr->name) - g_free (hdlr->name); + g_free (hdlr->name); hdlr->name = g_strdup (name); } |