Move setting the refcount to the end of the function

This is a safety feature for when making it atomic later.

https://bugzilla.gnome.org/show_bug.cgi?id=585375
This commit is contained in:
Edward Hervey 2009-09-24 10:44:17 +02:00 committed by Alexander Larsson
parent f8d24e8495
commit 170423f924

View File

@ -1127,7 +1127,6 @@ type_data_make_W (TypeNode *node,
}
node->data = data;
node->ref_count = 1;
if (vtable_size)
{
@ -1158,6 +1157,8 @@ type_data_make_W (TypeNode *node,
GPOINTER_TO_UINT (type_get_qdata_L (node, static_quark_type_flags))));
g_assert (node->data->common.value_table != NULL); /* paranoid */
node->ref_count = 1;
}
static inline void