]> git.sesse.net Git - vlc/blobdiff - modules/codec/cmml/xtag.c
Finnish translation update by Jouni Kähkönen
[vlc] / modules / codec / cmml / xtag.c
index 024e1e93387e8e9f27631ec38f066a70a7d55827..a7e3b97633f1fe41d9dcb14487c292bbe14a63c0 100644 (file)
@@ -36,6 +36,8 @@
 
 #include <xlist.h>
 
+#include <assert.h>
+
 #undef XTAG_DEBUG
 
 #undef FALSE
@@ -421,14 +423,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);