Skip to content

Commit 235b925

Browse files
mortieemersion
authored andcommitted
Fix a potential use-after-free
1 parent c46a519 commit 235b925

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.c

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ static void destroy_surface(struct swaylock_surface *surface) {
102102
}
103103
destroy_buffer(&surface->buffers[0]);
104104
destroy_buffer(&surface->buffers[1]);
105+
destroy_buffer(&surface->indicator_buffers[0]);
106+
destroy_buffer(&surface->indicator_buffers[1]);
105107
wl_output_destroy(surface->output);
106108
free(surface);
107109
}

0 commit comments

Comments
 (0)