mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
f8d24e8495
commit
170423f924
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user