diff options
Diffstat (limited to 'compositor/weston-screenshooter.c')
-rw-r--r-- | compositor/weston-screenshooter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compositor/weston-screenshooter.c b/compositor/weston-screenshooter.c index 0994cb4f..981aff86 100644 --- a/compositor/weston-screenshooter.c +++ b/compositor/weston-screenshooter.c @@ -162,6 +162,8 @@ screenshooter_destroy(struct wl_listener *listener, void *data) struct screenshooter *shooter = container_of(listener, struct screenshooter, destroy_listener); + wl_list_remove(&shooter->destroy_listener.link); + wl_global_destroy(shooter->global); free(shooter); } |