summaryrefslogtreecommitdiff
path: root/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-08 16:11:53 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-08 16:11:53 +0200
commit0ff31668a1117cf784e41331105d5c76f9bc441f (patch)
tree1906a2c9c85e5b8839c8d40257d8af6cf536d01f /src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
parent71069b857068201c37ffcc2c3e799329ff29769b (diff)
Wayland: remove memory leak from missing wl_callback_destroy() call.
This hopefully corresponds to the memory leak mentioned in fltk.general named "FLTK and Wayland".
Diffstat (limited to 'src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
index 9b2edba2a..855bce1c7 100644
--- a/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
+++ b/src/drivers/Wayland/Fl_Wayland_Graphics_Driver.H
@@ -78,7 +78,8 @@ public:
virtual void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen osrc, int srcx, int srcy);
static struct fl_wld_buffer *create_shm_buffer(int width, int height);
static void buffer_release(struct wld_window *window);
- static void buffer_commit(struct wld_window *window, const struct wl_callback_listener*);
+ static void buffer_commit(struct wld_window *window, const struct wl_callback_listener*,
+ bool need_damage = true);
static void cairo_init(struct fl_wld_buffer *buffer, int width, int height, int stride, cairo_format_t format);
virtual void *gc();
virtual void gc(void *gc);