summaryrefslogtreecommitdiff
path: root/pango/pango-ot-buffer.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2011-04-21 15:01:14 -0400
committerBehdad Esfahbod <behdad@behdad.org>2011-04-21 15:01:14 -0400
commitbf99026f8dbe054e9c59bf5a891b76b71ea912b7 (patch)
tree97b943149a21872e634ffdf7aea64a4aee376e6a /pango/pango-ot-buffer.c
parent754f002608028e18ba204a59c5a0ee92aa3bc9b7 (diff)
downloadpango-bf99026f8dbe054e9c59bf5a891b76b71ea912b7.tar.gz
[HB] Remove usage of hb_buffer_get_reference_count()
Diffstat (limited to 'pango/pango-ot-buffer.c')
-rw-r--r--pango/pango-ot-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index 186bfd41..26213a5a 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -65,7 +65,7 @@ acquire_buffer (gboolean *free_buffer)
static void
release_buffer (hb_buffer_t *buffer, gboolean free_buffer)
{
- if (G_LIKELY (!free_buffer) && hb_buffer_get_reference_count (buffer) == 1)
+ if (G_LIKELY (!free_buffer))
{
hb_buffer_reset (buffer);
G_UNLOCK (cached_buffer);