# screen_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L122
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-screen_free/

```c
void screen_free(struct screen *s)
```

## Parameters

- `s` (`struct screen *`)

## Called by

- [`format_draw`](/en/tmux/3.2a/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/format-draw.c#L994)
- [`menu_free_cb`](/en/tmux/3.2a/reference/c-function-menu-c-menu_free_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/menu.c#L177)
- [`mode_tree_free`](/en/tmux/3.2a/reference/c-function-mode_tree_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L530)
- [`popup_free_cb`](/en/tmux/3.2a/reference/c-function-popup-c-popup_free_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/popup.c#L169)
- [`screen_redraw_make_pane_status`](/en/tmux/3.2a/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen-redraw.c#L458)
- [`status_free`](/en/tmux/3.2a/reference/c-function-status_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L318)
- [`status_message_redraw`](/en/tmux/3.2a/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L537)
- [`status_pop_screen`](/en/tmux/3.2a/reference/c-function-status-c-status_pop_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L282)
- [`status_prompt_redraw`](/en/tmux/3.2a/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/status.c#L745)
- [`window_clock_free`](/en/tmux/3.2a/reference/c-function-window-clock-c-window_clock_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-clock.c#L183)
- [`window_copy_cmd_refresh_from_pane`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_refresh_from_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2234)
- [`window_copy_free`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L495)
- [`window_copy_search`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3234)
- [`window_copy_search_marks`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3398)
- [`window_pane_destroy`](/en/tmux/3.2a/reference/c-function-window-c-window_pane_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L907)

## Calls

- [`grid_destroy`](/en/tmux/3.2a/reference/c-function-grid_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L134)
- [`screen_free_titles`](/en/tmux/3.2a/reference/c-function-screen-c-screen_free_titles/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L137)
- [`screen_write_free_list`](/en/tmux/3.2a/reference/c-function-screen_write_free_list/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/screen.c#L131)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`screen.ccolour`](/en/tmux/3.2a/reference/c-struct-screen-ccolour/) (attribute)
- [`screen.grid`](/en/tmux/3.2a/reference/c-struct-screen-grid/) (attribute)
- [`screen.path`](/en/tmux/3.2a/reference/c-struct-screen-path/) (attribute)
- [`screen.saved_grid`](/en/tmux/3.2a/reference/c-struct-screen-saved_grid/) (attribute)
- [`screen`](/en/tmux/3.2a/reference/c-struct-screen/) (struct)
- [`screen.sel`](/en/tmux/3.2a/reference/c-struct-screen-sel/) (attribute)
- [`screen.tabs`](/en/tmux/3.2a/reference/c-struct-screen-tabs/) (attribute)
- [`screen.title`](/en/tmux/3.2a/reference/c-struct-screen-title/) (attribute)
- [`screen.write_list`](/en/tmux/3.2a/reference/c-struct-screen-write_list/) (attribute)
