mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
isomp4/atoms: remove unnecessary NULL checks before g_free()
This commit is contained in:
parent
5367b26653
commit
48c4362cdc
1 changed files with 2 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue