]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/xtag.c
Useless test before a free()
[vlc] / modules / codec / cmml / xtag.c
index 024e1e93387e8e9f27631ec38f066a70a7d55827..812e280a264e5fe3a9a2b725fd80a512222d49a9 100644 (file)
@@ -421,14 +421,14 @@ xtag_free (XTag * xtag)
 
   if (xtag == NULL) return NULL;
 
-  if (xtag->name) free (xtag->name);
-  if (xtag->pcdata) free (xtag->pcdata);
+  free( xtag->name );
+  free( xtag->pcdata );
 
   for (l = xtag->attributes; l; l = l->next) {
     if ((attr = (XAttribute *)l->data) != NULL) {
-      if (attr->name) free (attr->name);
-      if (attr->value) free (attr->value);
-      free (attr);
+      free( attr->name );
+      free( attr->value );
+      free( attr );
     }
   }
   xlist_free (xtag->attributes);