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);