[empathy: 116/148] Properly free memory



commit e442cf1c6b5f22ae3d3b8acb537ebe32d932b676
Author: Cosimo Cecchi <cosimo cecchi collabora co uk>
Date:   Wed May 20 20:02:03 2009 +0200

    Properly free memory
---
 libempathy/empathy-ft-handler.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 3dc790f..3698ee4 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -844,7 +844,7 @@ again:
       g_io_scheduler_job_send_to_mainloop_async (job, emit_hashing_progress,
           hash_data, NULL);
 
-      g_slice_free (guchar, hash_data->buffer);
+      g_slice_free1 (BUFFER_SIZE, hash_data->buffer);
       hash_data->buffer = NULL;
 
       goto again;
@@ -1509,4 +1509,4 @@ empathy_ft_handler_is_cancelled (EmpathyFTHandler *handler)
   priv = GET_PRIV (handler);
 
   return g_cancellable_is_cancelled (priv->cancellable);
-}
\ No newline at end of file
+}



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