summaryrefslogtreecommitdiff
path: root/pango/pango-coverage.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-10 09:05:39 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-13 18:03:40 -0400
commitfa908f4cb6db943b555a51d1ce4bf01112b1a710 (patch)
tree8fc893afc89c7f68f54f63c4ad468f316dc3b6cc /pango/pango-coverage.c
parentb22da261e98702b95db83cd96175d0d655dc0df4 (diff)
downloadpango-fa908f4cb6db943b555a51d1ce4bf01112b1a710.tar.gz
[pango-coverage] Use gslice for data arrays
Diffstat (limited to 'pango/pango-coverage.c')
-rw-r--r--pango/pango-coverage.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pango/pango-coverage.c b/pango/pango-coverage.c
index 30c92090..5b7ddada 100644
--- a/pango/pango-coverage.c
+++ b/pango/pango-coverage.c
@@ -144,7 +144,7 @@ pango_coverage_unref (PangoCoverage *coverage)
if (g_atomic_int_dec_and_test ((int *) &coverage->ref_count))
{
for (i=0; i<coverage->n_blocks; i++)
- g_free (coverage->blocks[i].data);
+ g_slice_free1 (64, coverage->blocks[i].data);
g_free (coverage->blocks);
g_slice_free (PangoCoverage, coverage);
@@ -235,7 +235,7 @@ pango_coverage_set (PangoCoverage *coverage,
if (level == coverage->blocks[block_index].level)
return;
- data = g_new (guchar, 64);
+ data = g_slice_alloc (64);
coverage->blocks[block_index].data = data;
byte = coverage->blocks[block_index].level |
@@ -398,7 +398,7 @@ pango_coverage_to_bytes (PangoCoverage *coverage,
if (j == 64)
{
- g_free (data);
+ g_slice_free1 (64, data);
coverage->blocks[i].data = NULL;
coverage->blocks[i].level = first_val & 0x3;
}