X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fenum.c;h=57ecbdd179f484c771fea4b27d95ac597d14233a;hp=8e8ef694fc4100c865dc0df5cfb7d211be9f90dc;hb=11796b9629d5a870163e4edd67e457576553aaef;hpb=7fe001942cc8ece60d945cbfbd1d135ff548dc7d diff --git a/types/enum.c b/types/enum.c index 8e8ef694..57ecbdd1 100644 --- a/types/enum.c +++ b/types/enum.c @@ -203,8 +203,8 @@ struct type_class_enum *enum_type_new(const char *name, int ret; enum_class = g_new(struct type_class_enum, 1); - enum_class->table.value_to_quark = g_hash_table(enum_val_hash, - enum_val_equal); + enum_class->table.value_to_quark = g_hash_table_new(enum_val_hash, + enum_val_equal); enum_class->table.quark_to_value = g_hash_table_new_full(g_direct_hash, g_direct_equal, NULL, enum_val_free);