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)
committerNikhil Devshatwar <a0132237@ti.com>
Fri, 17 May 2013 09:40:54 +0000 (15:10 +0530)
The object will be freed, so it's pointless to set the pointers
to NULL anyway.

ext/x264/gstx264enc.c

index 2be3dd3b9ca7d5646b3b5f23968763be9ebd81cf..ea3cf0bf9ca3581209b8c45c0828f50fd2ced27b 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);