]> git.0d.be Git - empathy.git/commitdiff
hash_job_done: set hash_data->error to NULL when cleaning it
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Jan 2010 17:17:39 +0000 (17:17 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 6 Jan 2010 17:40:31 +0000 (17:40 +0000)
This avoid to try to clean it at second time in hash_data_free (#606220).

libempathy/empathy-ft-handler.c

index 7c8033d846d4e4cba92a9f60966015505574d9e3..cd1d97ae048ef18067bc71deb8e807a80779de60 100644 (file)
@@ -820,6 +820,7 @@ hash_job_done (gpointer user_data)
   if (hash_data->error != NULL)
     {
       error = hash_data->error;
+      hash_data->error = NULL;
       goto cleanup;
     }