summaryrefslogtreecommitdiff
path: root/pango/pango-context.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-27 23:31:02 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-27 23:31:02 -0400
commitf160843b9afab5d8f39654580d7583cf49b0c242 (patch)
treec3689b4082e3b36f66db86a937b6e9a51319c638 /pango/pango-context.c
parenta4eeee8e222db740ca83d29217d707db1160ada8 (diff)
downloadpango-f160843b9afab5d8f39654580d7583cf49b0c242.tar.gz
More thread-safety
Diffstat (limited to 'pango/pango-context.c')
-rw-r--r--pango/pango-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-context.c b/pango/pango-context.c
index cdb6a53a..97cb2786 100644
--- a/pango/pango-context.c
+++ b/pango/pango-context.c
@@ -1366,7 +1366,7 @@ itemize_state_update_for_new_run (ItemizeState *state)
static const char *
string_from_script (PangoScript script)
{
- static GEnumClass *class = NULL;
+ static GEnumClass *class = NULL; /* MT-safe */
GEnumValue *value;
if (g_once_init_enter ((gsize*)&class))
g_once_init_leave((gsize*)&class, (gsize)g_type_class_ref (PANGO_TYPE_SCRIPT));