# screen_free

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L152
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-screen_free/

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

## Parameters

- `s` (`struct screen *`)

## Called by

- [`format_draw`](/en/tmux/3.7c/reference/c-function-format_draw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/format-draw.c#L1080)
- [`menu_free_cb`](/en/tmux/3.7c/reference/c-function-menu_free_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/menu.c#L302)
- [`mode_tree_free`](/en/tmux/3.7c/reference/c-function-mode_tree_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/mode-tree.c#L641)
- [`popup_draw_cb`](/en/tmux/3.7c/reference/c-function-popup-c-popup_draw_cb/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L339)
- [`popup_free`](/en/tmux/3.7c/reference/c-function-popup-c-popup_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L118)
- [`popup_make_pane`](/en/tmux/3.7c/reference/c-function-popup-c-popup_make_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/popup.c#L439)
- [`screen_redraw_make_pane_status`](/en/tmux/3.7c/reference/c-function-screen-redraw-c-screen_redraw_make_pane_status/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen-redraw.c#L656)
- [`status_free`](/en/tmux/3.7c/reference/c-function-status_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L349)
- [`status_message_redraw`](/en/tmux/3.7c/reference/c-function-status_message_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L661)
- [`status_pop_screen`](/en/tmux/3.7c/reference/c-function-status-c-status_pop_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L313)
- [`status_prompt_redraw`](/en/tmux/3.7c/reference/c-function-status_prompt_redraw/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/status.c#L965)
- [`window_clock_free`](/en/tmux/3.7c/reference/c-function-window-clock-c-window_clock_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-clock.c#L199)
- [`window_copy_cmd_refresh_from_pane`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_refresh_from_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2803)
- [`window_copy_free`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L551)
- [`window_copy_search`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4355)
- [`window_copy_search_marks`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4548)
- [`window_pane_destroy`](/en/tmux/3.7c/reference/c-function-window-c-window_pane_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1109)

## Calls

- [`grid_destroy`](/en/tmux/3.7c/reference/c-function-grid_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L163)
- [`hyperlinks_free`](/en/tmux/3.7c/reference/c-function-hyperlinks_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L167)
- [`screen_free_titles`](/en/tmux/3.7c/reference/c-function-screen-c-screen_free_titles/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L168)
- [`screen_write_free_list`](/en/tmux/3.7c/reference/c-function-screen_write_free_list/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/screen.c#L160)

## Referenced declarations

- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`screen.hyperlinks`](/en/tmux/3.7c/reference/c-struct-screen-hyperlinks/) (attribute)
- [`screen.path`](/en/tmux/3.7c/reference/c-struct-screen-path/) (attribute)
- [`screen.saved_grid`](/en/tmux/3.7c/reference/c-struct-screen-saved_grid/) (attribute)
- [`screen`](/en/tmux/3.7c/reference/c-struct-screen/) (struct)
- [`SCREEN_IS_ALTERNATE`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_is_alternate/) (constant)
- [`screen.sel`](/en/tmux/3.7c/reference/c-struct-screen-sel/) (attribute)
- [`screen.tabs`](/en/tmux/3.7c/reference/c-struct-screen-tabs/) (attribute)
- [`screen.title`](/en/tmux/3.7c/reference/c-struct-screen-title/) (attribute)
- [`screen.write_list`](/en/tmux/3.7c/reference/c-struct-screen-write_list/) (attribute)
