summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2009-10-20 13:07:19 -0700
committerCarl Worth <cworth@cworth.org>2009-10-20 13:07:19 -0700
commit7f254fb603f5ee073d48b052c00e1fdb6b8dc940 (patch)
tree9ab7005ad64a5152657fda858fc2794457d585c3
parent5a84df0f1507753b1776636ad268d36b7346a8fd (diff)
message: Use g_hash_table_destroy instead of g_hash_table_unref
I'm trying to chase down 3 still-reachable pointers to glib hash tables. This change didn't help with that, but I think destroy might be a better semantic match for what I actually want. (It shouldn't matter though since I never take any additional references.)
-rw-r--r--message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/message.c b/message.c
index e6488a3..d888b24 100644
--- 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);