X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch.c;h=ca30b521d725fe97ea9b77dbc040b74a3ce9ab10;hp=f620f58dfe8aadcbcbfe0bd2186996c9fbf626c6;hb=16003e1f8f22a4a1e2a63c89941565ae1a7b320b;hpb=ae0bd3f503c8815affa733f48498bb77d023680b;ds=sidebyside diff --git a/notmuch.c b/notmuch.c index f620f58d..ca30b521 100644 --- a/notmuch.c +++ b/notmuch.c @@ -264,9 +264,10 @@ add_files_recursive (notmuch_database_t *notmuch, /* success */ case NOTMUCH_STATUS_SUCCESS: state->added_messages++; - if (state->callback) + if (state->callback) { (state->callback) (message); - notmuch_message_destroy (message); + notmuch_message_destroy (message); + } break; /* Non-fatal issues (go on to next file) */ case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: