/src/neomutt/nntp/mdata.c
Line | Count | Source (jump to first uncovered line) |
1 | | /** |
2 | | * @file |
3 | | * Nntp-specific Mailbox data |
4 | | * |
5 | | * @authors |
6 | | * Copyright (C) 2021 Richard Russon <rich@flatcap.org> |
7 | | * |
8 | | * @copyright |
9 | | * This program is free software: you can redistribute it and/or modify it under |
10 | | * the terms of the GNU General Public License as published by the Free Software |
11 | | * Foundation, either version 2 of the License, or (at your option) any later |
12 | | * version. |
13 | | * |
14 | | * This program is distributed in the hope that it will be useful, but WITHOUT |
15 | | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
16 | | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
17 | | * details. |
18 | | * |
19 | | * You should have received a copy of the GNU General Public License along with |
20 | | * this program. If not, see <http://www.gnu.org/licenses/>. |
21 | | */ |
22 | | |
23 | | /** |
24 | | * @page nntp_mdata Nntp-specific Mailbox data |
25 | | * |
26 | | * Nntp-specific Mailbox data |
27 | | */ |
28 | | |
29 | | #include "config.h" |
30 | | #include "private.h" |
31 | | #include "mutt/lib.h" |
32 | | #include "mdata.h" |
33 | | #include "bcache/lib.h" |
34 | | |
35 | | /** |
36 | | * nntp_mdata_free - Free the private Mailbox data - Implements Mailbox::mdata_free() |
37 | | */ |
38 | | void nntp_mdata_free(void **ptr) |
39 | 0 | { |
40 | 0 | struct NntpMboxData *mdata = *ptr; |
41 | |
|
42 | 0 | nntp_acache_free(mdata); |
43 | 0 | mutt_bcache_close(&mdata->bcache); |
44 | 0 | FREE(&mdata->newsrc_ent); |
45 | 0 | FREE(&mdata->desc); |
46 | 0 | FREE(ptr); |
47 | 0 | } |