aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-08-02 00:04:45 +0200
committerdec05eba <dec05eba@protonmail.com>2026-08-02 00:04:45 +0200
commit06be2c8a12cd021083670d304a72f93907c8b22e (patch)
tree53b69ef77c54ac46e269acb26a51b5f582cc8803 /include
parent68d5c511d105650c9d0a5e920f77b0f19fabbfe0 (diff)
Add resource cleanup on all paths
The recorder, screenshot and cli now free everything they create, also when setup fails. Adds gsr_windowing_deinit, implements the missing gsr_window_destroy and destroys the pipewire registry proxy.
Diffstat (limited to 'include')
-rw-r--r--include/recorder/windowing.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/recorder/windowing.h b/include/recorder/windowing.h
index 6bc5f5f..630f3fe 100644
--- a/include/recorder/windowing.h
+++ b/include/recorder/windowing.h
@@ -25,6 +25,7 @@ typedef struct {
int gsr_windowing_init(gsr_windowing *self, const gsr_windowing_params *params);
/* Returns a |gsr_error| value. Loads opengl and finds the drm card to use */
int gsr_windowing_load_egl(gsr_windowing *self, const gsr_windowing_params *params);
+void gsr_windowing_deinit(gsr_windowing *self);
bool gsr_windowing_is_wayland(const gsr_windowing *self);
bool gsr_windowing_is_using_prime_run(void);