aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-16 00:28:28 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:53:18 +0800
commit99e69fa352b25ae65d636a2ab464886d1b8f8af1 (patch)
tree9adae216e92793711b0258ca035e24c049c4d1fc /libempathy
parent4fcc11053a0a2eef7271431997eb5ff629199290 (diff)
downloadgsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar.gz
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar.bz2
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar.lz
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar.xz
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.tar.zst
gsoc2013-empathy-99e69fa352b25ae65d636a2ab464886d1b8f8af1.zip
Use g_slice_* instead of g_malloc
Diffstat (limited to 'libempathy')
-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 f9b4a8734..98e4dc6e5 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -726,7 +726,7 @@ do_hash_job (GIOSchedulerJob *job,
again:
if (hash_data->buffer == NULL)
- hash_data->buffer = g_malloc0 (BUFFER_SIZE);
+ hash_data->buffer = g_slice_alloc0 (BUFFER_SIZE);
bytes_read = g_input_stream_read (hash_data->stream, hash_data->buffer,
BUFFER_SIZE, cancellable, &error);
@@ -742,7 +742,7 @@ again:
g_io_scheduler_job_send_to_mainloop_async (job, emit_hashing_progress,
hash_data, NULL);
- g_free (hash_data->buffer);
+ g_slice_free (guchar, hash_data->buffer);
hash_data->buffer = NULL;
goto again;