]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-show.c
Use notmuch_database_destroy instead of notmuch_database_close
[notmuch] / notmuch-show.c
index da4a797fbf1e9ed7901301a7c1cb0f3895c3d16e..3b6667c4bdbd5d411fc35dabbe40bce8bc74d19b 100644 (file)
@@ -1117,7 +1117,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
     }
 
     notmuch_query_destroy (query);
     }
 
     notmuch_query_destroy (query);
-    notmuch_database_close (notmuch);
+    notmuch_database_destroy (notmuch);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);
 
     if (params.cryptoctx)
        g_object_unref(params.cryptoctx);