# window_buffer_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L389
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_free/

```c
static void window_buffer_free(struct window_mode_entry *)
```

## Parameters

- `wme` (`struct window_mode_entry *`)

## Calls

- [`mode_tree_free`](/en/tmux/3.7c/reference/c-function-mode_tree_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L397)
- [`window_buffer_free_item`](/en/tmux/3.7c/reference/c-function-window-buffer-c-window_buffer_free_item/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-buffer.c#L400)

## Referenced by

- [`window_buffer_mode`](/en/tmux/3.7c/reference/c-variable-window_buffer_mode/) (attribute)

## Referenced declarations

- [`window_buffer_modedata.data`](/en/tmux/3.7c/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
