# window_tree_destroy

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L949
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_destroy/

```c
static void window_tree_destroy(struct window_tree_modedata *data)
```

## Parameters

- `data` (`struct window_tree_modedata *`)

## Called by

- [`window_tree_command_done`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_command_done/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1061)
- [`window_tree_command_free`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_command_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1090)
- [`window_tree_free`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L977)

## Calls

- [`window_tree_free_item`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_free_item/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L957)

## Referenced declarations

- [`window_tree_modedata.command`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-command/) (attribute)
- [`window_tree_modedata.format`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-format/) (attribute)
- [`window_tree_modedata.item_list`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-item_list/) (attribute)
- [`window_tree_modedata.item_size`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-item_size/) (attribute)
- [`window_tree_modedata.key_format`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-key_format/) (attribute)
- [`window_tree_modedata.references`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata-references/) (attribute)
- [`window_tree_modedata`](/en/tmux/3.2a/reference/c-struct-window_tree_modedata/) (struct)
