From: Vincent Penquerc'h Date: Fri, 13 Jan 2012 13:46:50 +0000 (+0000) Subject: x264enc: remove useless and semantically (though not practically) wrong code X-Git-Tag: freedesktop-RELEASE-0.10.18.3-pre-release~4 X-Git-Url: https://git.ti.com/gitweb?p=glsdk%2Fgst-plugins-ugly0-10.git;a=commitdiff_plain;h=2534af3672450a0d4fd997310fc5ffb0e4dfe863 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. --- 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);