summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/basic/basic-fc.c2
-rw-r--r--pango/pango-ot-buffer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index c24aa80e..24a84270 100644
--- a/modules/basic/basic-fc.c
+++ b/modules/basic/basic-fc.c
@@ -98,7 +98,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);
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);