]> git.0d.be Git - empathy.git/commitdiff
Don't use slices for 4096 chunks
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Sat, 23 May 2009 13:28:37 +0000 (15:28 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:53:22 +0000 (17:53 +0200)
libempathy/empathy-ft-handler.c

index 3698ee4e4bd059310e8787f885fa9494b89172c3..9286e5646d8300f531ee9a5534886036e6243edd 100644 (file)
@@ -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;