X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Findex.cc;h=2b98b588d38d4532173a503cc652aa5e8d3c3de1;hb=debfae20db9a45ce7e12ac51db2b0104cd3b0be2;hp=044e4111dc0b1420139fe0da429c34421891dd1f;hpb=cbb2d5608ef6dd54d6e9e19b2bb570d3fe54b28b;p=notmuch diff --git a/lib/index.cc b/lib/index.cc index 044e4111..2b98b588 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -261,7 +261,7 @@ notmuch_filter_discard_non_term_new (GMimeContentType *content_type) type = g_type_register_static (GMIME_TYPE_FILTER, "NotmuchFilterDiscardNonTerm", &info, (GTypeFlags) 0); } - filter = (NotmuchFilterDiscardNonTerm *) g_object_newv (type, 0, NULL); + filter = (NotmuchFilterDiscardNonTerm *) g_object_new (type, NULL); filter->content_type = content_type; filter->state = 0; if (g_mime_content_type_is_type (content_type, "text", "html")) { @@ -501,7 +501,7 @@ _notmuch_message_index_file (notmuch_message_t *message, addresses = g_mime_message_get_from (mime_message); if (addresses) { _index_address_list (message, "from", addresses); - g_object_unref (addresses); + g_mime_2_6_unref (addresses); } addresses = g_mime_message_get_all_recipients (mime_message);