NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
wdata_free()

Free the private data attached to the MuttWindow. More...

+ Collaboration diagram for wdata_free():

Functions

void cbar_data_free (struct MuttWindow *win, void **ptr)
 Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -. More...
 
void env_data_free (struct MuttWindow *win, void **ptr)
 Free the Compose Envelope Data - Implements MuttWindow::wdata_free() -. More...
 
void compose_shared_data_free (struct MuttWindow *win, void **ptr)
 Create the compose shared data - Implements MuttWindow::wdata_free() -. More...
 
static void msgwin_wdata_free (struct MuttWindow *win, void **ptr)
 Free the private data attached to the Message Window - Implements MuttWindow::wdata_free() -. More...
 
static void sbar_wdata_free (struct MuttWindow *win, void **ptr)
 Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -. More...
 
void helpbar_wdata_free (struct MuttWindow *win, void **ptr)
 Free Helpbar Window data - Implements MuttWindow::wdata_free() -. More...
 
static void ibar_data_free (struct MuttWindow *win, void **ptr)
 Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -. More...
 
static void menu_wdata_free (struct MuttWindow *win, void **ptr)
 Destroy a Menu Window - Implements MuttWindow::wdata_free() -. More...
 
static void pbar_data_free (struct MuttWindow *win, void **ptr)
 Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -. More...
 
void sb_wdata_free (struct MuttWindow *win, void **ptr)
 Free Sidebar Window data - Implements MuttWindow::wdata_free() -. More...
 

Detailed Description

Free the private data attached to the MuttWindow.

Parameters
winWindow
ptrWindow data to free

Contract

Function Documentation

◆ cbar_data_free()

void cbar_data_free ( struct MuttWindow win,
void **  ptr 
)

Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.

Definition at line 40 of file cbar_data.c.

41 {
42  struct ComposeBarData *cbar_data = *ptr;
43 
46 
47  FREE(&cbar_data->compose_format);
48 
49  FREE(ptr);
50 }
Container for Accounts, Notifications.
Definition: neomutt.h:36
Data to fill the Compose Bar Window.
Definition: cbar_data.h:33
struct Notify * notify
Notifications handler.
Definition: neomutt.h:38
int cbar_color_observer(struct NotifyCallback *nc)
Notification that a Color has changed - Implements observer_t.
Definition: cbar.c:205
int cbar_config_observer(struct NotifyCallback *nc)
Notification that a Config Variable has changed - Implements observer_t.
Definition: cbar.c:241
#define FREE(x)
Definition: memory.h:40
bool notify_observer_remove(struct Notify *notify, observer_t callback, void *global_data)
Remove an observer from an object.
Definition: notify.c:228
char * compose_format
Cached status string.
Definition: cbar_data.h:35
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ env_data_free()

void env_data_free ( struct MuttWindow win,
void **  ptr 
)

Free the Compose Envelope Data - Implements MuttWindow::wdata_free() -.

Definition at line 36 of file env_data.c.

37 {
38  struct ComposeEnvelopeData *env_data = *ptr;
39 
40  mutt_list_free(&env_data->to_list);
41  mutt_list_free(&env_data->cc_list);
42  mutt_list_free(&env_data->bcc_list);
43 
44  FREE(ptr);
45 }
struct ListHead cc_list
'Cc:' list of addresses
Definition: env_data.h:42
Data to fill the Compose Envelope Window.
Definition: env_data.h:37
void mutt_list_free(struct ListHead *h)
Free a List AND its strings.
Definition: list.c:122
struct ListHead bcc_list
'Bcc:' list of addresses
Definition: env_data.h:43
struct ListHead to_list
'To:' list of addresses
Definition: env_data.h:41
#define FREE(x)
Definition: memory.h:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compose_shared_data_free()

void compose_shared_data_free ( struct MuttWindow win,
void **  ptr 
)

Create the compose shared data - Implements MuttWindow::wdata_free() -.

Definition at line 36 of file shared_data.c.

37 {
38  struct ComposeSharedData *shared = *ptr;
39 
40  notify_free(&shared->notify);
41 
42  FREE(ptr);
43 }
void notify_free(struct Notify **ptr)
Free a notification handler.
Definition: notify.c:73
Shared Compose Data.
Definition: shared_data.h:29
struct Notify * notify
Notifications: NotifyCompose.
Definition: shared_data.h:36
#define FREE(x)
Definition: memory.h:40
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ msgwin_wdata_free()

static void msgwin_wdata_free ( struct MuttWindow win,
void **  ptr 
)
static

Free the private data attached to the Message Window - Implements MuttWindow::wdata_free() -.

Definition at line 170 of file msgwin.c.

171 {
172  struct MsgWinPrivateData *priv = *ptr;
173 
174  FREE(&priv->text);
175 
176  FREE(ptr);
177 }
Private data for the Message Window.
Definition: msgwin.c:95
char * text
Cached display string.
Definition: msgwin.c:98
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ sbar_wdata_free()

static void sbar_wdata_free ( struct MuttWindow win,
void **  ptr 
)
static

Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.

Definition at line 173 of file sbar.c.

174 {
175  struct SBarPrivateData *priv = *ptr;
176 
177  FREE(&priv->display);
178 
179  FREE(ptr);
180 }
char * display
Cached display string.
Definition: sbar.c:75
Private data for the Simple Bar.
Definition: sbar.c:73
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ helpbar_wdata_free()

void helpbar_wdata_free ( struct MuttWindow win,
void **  ptr 
)

Free Helpbar Window data - Implements MuttWindow::wdata_free() -.

Definition at line 47 of file wdata.c.

48 {
49  struct HelpbarWindowData *wdata = *ptr;
50 
51  // We don't own the help_data
52  FREE(&wdata->help_str);
53 
54  FREE(ptr);
55 }
char * help_str
Formatted Help Bar string.
Definition: private.h:37
Help Bar Window data -.
Definition: private.h:33
#define FREE(x)
Definition: memory.h:40
void * wdata
Private data.
Definition: mutt_window.h:145
+ Here is the caller graph for this function:

◆ ibar_data_free()

static void ibar_data_free ( struct MuttWindow win,
void **  ptr 
)
static

Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.

Definition at line 301 of file ibar.c.

302 {
303  struct IBarPrivateData *ibar_data = *ptr;
304 
305  FREE(&ibar_data->status_format);
306  FREE(&ibar_data->ts_status_format);
307  FREE(&ibar_data->ts_icon_format);
308 
309  FREE(ptr);
310 }
char * ts_icon_format
Cached terminal icon string.
Definition: ibar.c:84
char * status_format
Cached screen status string.
Definition: ibar.c:82
char * ts_status_format
Cached terminal status string.
Definition: ibar.c:83
Data to draw the Index Bar.
Definition: ibar.c:78
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ menu_wdata_free()

static void menu_wdata_free ( struct MuttWindow win,
void **  ptr 
)
static

Destroy a Menu Window - Implements MuttWindow::wdata_free() -.

Definition at line 113 of file window.c.

114 {
115  menu_free((struct Menu **) ptr);
116 }
Definition: lib.h:67
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pbar_data_free()

static void pbar_data_free ( struct MuttWindow win,
void **  ptr 
)
static

Free the private data attached to the MuttWindow - Implements MuttWindow::wdata_free() -.

Definition at line 307 of file pbar.c.

308 {
309  struct PBarPrivateData *pbar_data = *ptr;
310 
311  FREE(&pbar_data->pager_format);
312 
313  FREE(ptr);
314 }
char * pager_format
Cached status string.
Definition: pbar.c:87
Data to draw the Pager Bar.
Definition: pbar.c:83
#define FREE(x)
Definition: memory.h:40
+ Here is the caller graph for this function:

◆ sb_wdata_free()

void sb_wdata_free ( struct MuttWindow win,
void **  ptr 
)

Free Sidebar Window data - Implements MuttWindow::wdata_free() -.

Definition at line 52 of file wdata.c.

53 {
54  struct SidebarWindowData *wdata = *ptr;
55 
56  struct SbEntry **sbep = NULL;
57  ARRAY_FOREACH(sbep, &wdata->entries)
58  {
59  FREE(sbep);
60  }
61  ARRAY_FREE(&wdata->entries);
62 
63  FREE(ptr);
64 }
#define ARRAY_FREE(head)
Release all memory.
Definition: array.h:198
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
Definition: array.h:206
Sidebar private Window data -.
Definition: private.h:62
Info about folders in the sidebar.
Definition: private.h:39
#define FREE(x)
Definition: memory.h:40
void * wdata
Private data.
Definition: mutt_window.h:145
+ Here is the caller graph for this function: