message: Use g_hash_table_destroy instead of g_hash_table_unref
[notmuch] / message.c
index e6488a3711cfdb9d976421878c2d1cc1911638c0..d888b24d63392d245be1001baf3a62a1150f41d2 100644 (file)
--- a/message.c
+++ b/message.c
@@ -111,7 +111,7 @@ notmuch_message_close (notmuch_message_t *message)
        free (message->value.str);
 
     if (message->headers)
-       g_hash_table_unref (message->headers);
+       g_hash_table_destroy (message->headers);
 
     if (message->file)
        fclose (message->file);