# window_tree_free_item

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

```c
static void window_tree_free_item(struct window_tree_itemdata *item)
```

## Parameters

- `item` (`struct window_tree_itemdata *`)

## Called by

- [`window_tree_build`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_build/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L465)
- [`window_tree_build_session`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_build_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L446)
- [`window_tree_build_window`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_build_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L396)
- [`window_tree_destroy`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L957)

## Referenced declarations

- [`window_tree_itemdata`](/en/tmux/3.2a/reference/c-struct-window_tree_itemdata/) (struct)
