[pango/harfbuzz-ng-external] [HB] Remove usage of hb_buffer_get_reference_count()



commit bf99026f8dbe054e9c59bf5a891b76b71ea912b7
Author: Behdad Esfahbod <behdad behdad org>
Date:   Thu Apr 21 15:01:14 2011 -0400

    [HB] Remove usage of hb_buffer_get_reference_count()

 modules/basic/basic-fc.c |    2 +-
 pango/pango-ot-buffer.c  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c
index c24aa80..24a8427 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 186bfd4..26213a5 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]