[opentype] Free mutex on hb_blob destruction
authorRobert Ancell <robert.ancell@canonical.com>
Thu, 14 Jun 2012 00:24:04 +0000 (12:24 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Thu, 14 Jun 2012 00:24:04 +0000 (12:24 +1200)
pango/opentype/hb-blob.c
pango/opentype/hb-private.h

index 3e787fc..3e2f16c 100644 (file)
@@ -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);
 }
index 2791b05..4523a1d 100644 (file)
@@ -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"