g_return_val_if_fail (tag != NULL, NULL);
info = gst_tag_lookup (tag);
if (!info) {
- GST_WARNING ("Uknown tag: %s", tag);
+ GST_WARNING ("Unknown tag: %s", tag);
return tag;
}
gst_structure_free (GST_TAG_LIST_STRUCTURE (list));
+#ifdef USE_POISONING
+ memset (list, 0xff, sizeof (GstTagListImpl));
+#endif
+
g_slice_free1 (sizeof (GstTagListImpl), list);
}
g_warning ("%s: %s", G_STRLOC, error);
g_free (error);
/* we purposely leak the value here, it might not be
- * in a sane state if an error condition occoured
+ * in a sane state if an error condition occurred
*/
return;
}