summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 778a2823..4f9b1d55 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -70,10 +70,11 @@ PangoAttrType
pango_attr_type_register (const gchar *name)
{
static guint current_type = 0x1000000; /* MT-safe */
+ guint type;
G_LOCK (attr_type);
- guint type = current_type++;
+ type = current_type++;
if (name)
{