diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-06-14 12:24:04 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-06-14 12:24:04 +1200 |
commit | dc54dda64344fe8f7c18ce1223351fa2d8740832 (patch) | |
tree | 0ed4eabfd8639a1127376603dc29dbf4d0387453 /pango | |
parent | 70a85d441d973883af4afb57599bc570eeea4c83 (diff) | |
download | pango-dc54dda64344fe8f7c18ce1223351fa2d8740832.tar.gz |
[opentype] Free mutex on hb_blob destruction
Diffstat (limited to 'pango')
-rw-r--r-- | pango/opentype/hb-blob.c | 1 | ||||
-rw-r--r-- | pango/opentype/hb-private.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/pango/opentype/hb-blob.c b/pango/opentype/hb-blob.c index 3e787fcb..3e2f16c7 100644 --- a/pango/opentype/hb-blob.c +++ b/pango/opentype/hb-blob.c @@ -174,6 +174,7 @@ hb_blob_destroy (hb_blob_t *blob) HB_OBJECT_DO_DESTROY (blob); _hb_blob_destroy_user_data (blob); + hb_mutex_free (blob->lock); free (blob); } diff --git a/pango/opentype/hb-private.h b/pango/opentype/hb-private.h index 2791b05c..4523a1d0 100644 --- a/pango/opentype/hb-private.h +++ b/pango/opentype/hb-private.h @@ -76,6 +76,7 @@ typedef GStaticMutex hb_mutex_t; #define hb_mutex_lock(M) g_static_mutex_lock (&M) #define hb_mutex_trylock(M) g_static_mutex_trylock (&M) #define hb_mutex_unlock(M) g_static_mutex_unlock (&M) +#define hb_mutex_free(M) g_static_mutex_free (&M) #else #error "Could not find any system to define platform macros, see hb-private.h" |