diff options
author | Cosimo Cecchi <cosimo.cecchi@collabora.co.uk> | 2009-05-23 21:34:28 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-06-01 23:53:23 +0800 |
commit | fec609875fd59ec0d50114e638620e3d372c511e (patch) | |
tree | 45b75a929d8a03223bde7cffdb201cc6f9b7e1cb /libempathy/empathy-ft-handler.c | |
parent | 3c0044036538d3a3e4faf600c097e57f551e2d4f (diff) | |
download | gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar.gz gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar.bz2 gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar.lz gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar.xz gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.tar.zst gsoc2013-empathy-fec609875fd59ec0d50114e638620e3d372c511e.zip |
Style fixes for *_free() functions
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r-- | libempathy/empathy-ft-handler.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c index 9286e5646..d515c86f3 100644 --- a/libempathy/empathy-ft-handler.c +++ b/libempathy/empathy-ft-handler.c @@ -460,34 +460,19 @@ empathy_ft_handler_init (EmpathyFTHandler *self) static void hash_data_free (HashingData *data) { - if (data->buffer != NULL) - { - g_free (data->buffer); - data->buffer = NULL; - } + g_free (data->buffer); if (data->stream != NULL) - { - g_object_unref (data->stream); - data->stream = NULL; - } + g_object_unref (data->stream); if (data->checksum != NULL) - { - g_checksum_free (data->checksum); - data->checksum = NULL; - } + g_checksum_free (data->checksum); if (data->error != NULL) - { - g_error_free (data->error); - data->error = NULL; - } + g_error_free (data->error); + if (data->handler != NULL) - { - g_object_unref (data->handler); - data->handler = NULL; - } + g_object_unref (data->handler); g_slice_free (HashingData, data); } |