From 06be2c8a12cd021083670d304a72f93907c8b22e Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 2 Aug 2026 00:04:45 +0200 Subject: 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. --- include/recorder/windowing.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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); -- cgit v1.2.3