aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-23 21:28:37 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:53:22 +0800
commit3c0044036538d3a3e4faf600c097e57f551e2d4f (patch)
treede32861c5f00c8b792b4c67cc7f0945d02e42aea /libempathy/empathy-ft-handler.c
parente442cf1c6b5f22ae3d3b8acb537ebe32d932b676 (diff)
downloadgsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar.gz
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar.bz2
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar.lz
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar.xz
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.tar.zst
gsoc2013-empathy-3c0044036538d3a3e4faf600c097e57f551e2d4f.zip
Don't use slices for 4096 chunks
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r--libempathy/empathy-ft-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 3698ee4e4..9286e5646 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -828,7 +828,7 @@ do_hash_job (GIOSchedulerJob *job,
again:
if (hash_data->buffer == NULL)
- hash_data->buffer = g_slice_alloc0 (BUFFER_SIZE);
+ hash_data->buffer = g_malloc0 (BUFFER_SIZE);
bytes_read = g_input_stream_read (hash_data->stream, hash_data->buffer,
BUFFER_SIZE, cancellable, &error);
@@ -844,7 +844,7 @@ again:
g_io_scheduler_job_send_to_mainloop_async (job, emit_hashing_progress,
hash_data, NULL);
- g_slice_free1 (BUFFER_SIZE, hash_data->buffer);
+ g_free (hash_data->buffer);
hash_data->buffer = NULL;
goto again;