diff options
author | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-17 15:23:17 -0800 |
---|---|---|
committer | Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com> | 2015-11-18 16:05:42 -0800 |
commit | 86ec81242987d876ef0760b6d9201c79de9d1bf4 (patch) | |
tree | 7218eb94926339718084cf101ab76907d8912793 /gst/mpegtsdemux/tsdemux.c | |
parent | 87b5ad0dfc2cca4c35337f85bc0f5b89fe462d6a (diff) | |
download | gstreamer-plugins-bad-86ec81242987d876ef0760b6d9201c79de9d1bf4.tar.gz |
Remove unnecessary NULL checks before g_free()
g_free() is NULL-safe
Diffstat (limited to 'gst/mpegtsdemux/tsdemux.c')
-rw-r--r-- | gst/mpegtsdemux/tsdemux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index f1045da22..fb8e6ac34 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1579,8 +1579,7 @@ done: gst_pad_set_event_function (pad, gst_ts_demux_srcpad_event); } - if (name) - g_free (name); + g_free (name); if (template) gst_object_unref (template); if (caps) @@ -1714,8 +1713,7 @@ gst_ts_demux_stream_flush (TSDemuxStream * stream, GstTSDemux * tsdemux, { GST_DEBUG ("flushing stream %p", stream); - if (stream->data) - g_free (stream->data); + g_free (stream->data); stream->data = NULL; stream->state = PENDING_PACKET_EMPTY; stream->expected_size = 0; |