x264enc: remove useless and semantically (though not practically) wrong code
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 13 Jan 2012 13:46:50 +0000 (13:46 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 13 Jan 2012 13:48:23 +0000 (13:48 +0000)
The object will be freed, so it's pointless to set the pointers
to NULL anyway.

ext/x264/gstx264enc.c

index 2be3dd3..ea3cf0b 100644 (file)
@@ -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);