summaryrefslogtreecommitdiff
path: root/gst-libs/gst/mpegts/gst-atsc-section.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2014-07-06 01:55:50 +0200
committerEdward Hervey <bilboed@bilboed.com>2014-07-09 12:04:17 +0200
commitfba6ebaae2d9adb5aa501fc81b4a7005042f71c6 (patch)
treea5fb1fe2dde532e90bbe7eb3684bafbe65a01ae7 /gst-libs/gst/mpegts/gst-atsc-section.c
parent66c38b50f3ddd911eb5abd05e8095e438cadec78 (diff)
downloadgstreamer-plugins-bad-fba6ebaae2d9adb5aa501fc81b4a7005042f71c6.tar.gz
mpegts: No need to check for NULL before calling g_free()
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=732789
Diffstat (limited to 'gst-libs/gst/mpegts/gst-atsc-section.c')
-rw-r--r--gst-libs/gst/mpegts/gst-atsc-section.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gst-libs/gst/mpegts/gst-atsc-section.c b/gst-libs/gst/mpegts/gst-atsc-section.c
index 021c8e607..459a323e0 100644
--- a/gst-libs/gst/mpegts/gst-atsc-section.c
+++ b/gst-libs/gst/mpegts/gst-atsc-section.c
@@ -411,8 +411,7 @@ _gst_mpegts_atsc_string_segment_copy (GstMpegtsAtscStringSegment * seg)
static void
_gst_mpegts_atsc_string_segment_free (GstMpegtsAtscStringSegment * seg)
{
- if (seg->cached_string)
- g_free (seg->cached_string);
+ g_free (seg->cached_string);
g_slice_free (GstMpegtsAtscStringSegment, seg);
}