From 69541031da9302b8fe6bfbb3e52a213400fa287b Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Fri, 13 Jan 2012 13:46:50 +0000 Subject: [PATCH] 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. --- ext/x264/gstx264enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/x264/gstx264enc.c b/ext/x264/gstx264enc.c index 2be3dd3b9c..ea3cf0bf9c 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);