summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2012-01-13 13:46:50 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-01-18 12:23:18 +0000
commit25c227ab2300e4280a196a0c1296990f50418deb (patch)
treed98958636c28fa238640ab6d9a28c3d9043b1d4d
parent774aa68e1ee896a803fb640925528ba633665fb6 (diff)
x264enc: remove useless and semantically (though not practically) wrong code
The object will be freed, so it's pointless to set the pointers to NULL anyway.
-rw-r--r--ext/x264/gstx264enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c
index 2be3dd3b..ea3cf0bf 100644
--- a/ext/x264/gstx264enc.c
+++ b/ext/x264/gstx264enc.c
@@ -962,7 +962,7 @@ gst_x264_enc_finalize (GObject * object)
#define FREE_STRING(ptr) \
if (ptr) \
- ptr = (GString *)g_string_free (ptr, TRUE);
+ g_string_free (ptr, TRUE);
FREE_STRING (encoder->tunings);
FREE_STRING (encoder->option_string);