*/
#include <babeltrace/compiler.h>
+#include <babeltrace/types.h>
size_t float_copy(unsigned char *dest, const struct format *fdest,
const unsigned char *src, const struct format *fsrc,
struct type_class_float *float_class;
int ret;
- /*
- * Freed when type is unregistered.
- */
float_class = g_new(struct type_class_float, 1);
float_class->p.name = g_quark_from_string(name);
float_class->p.alignment = alignment;
void float_type_free(struct type_class_float *float_class)
{
- if (!float_class->name)
- g_free(float_class);
+ g_free(float_class);
}