diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2012-01-13 13:46:50 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2012-01-18 12:23:18 +0000 |
commit | 25c227ab2300e4280a196a0c1296990f50418deb (patch) | |
tree | d98958636c28fa238640ab6d9a28c3d9043b1d4d | |
parent | 774aa68e1ee896a803fb640925528ba633665fb6 (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.c | 2 |
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); |