]> git.0d.be Git - empathy.git/commitdiff
Properly free memory
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>
Wed, 20 May 2009 18:02:03 +0000 (20:02 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Mon, 1 Jun 2009 15:53:22 +0000 (17:53 +0200)
libempathy/empathy-ft-handler.c

index 3dc790f3f4655fa452067ac40255cc86ba680312..3698ee4e4bd059310e8787f885fa9494b89172c3 100644 (file)
@@ -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
+}