Cleanup some leaks/incorrect destructions

This commit is contained in:
nyorain 2017-06-20 19:01:20 +02:00
parent a96d90dec4
commit 51f35e7af0
3 changed files with 12 additions and 1 deletions

View file

@ -83,7 +83,9 @@ static bool wlr_wl_output_move_cursor(struct wlr_output_state *output,
}
static void wlr_wl_output_destroy(struct wlr_output_state *output) {
// TODO: free egl surface
if(output->frame_callback) wl_callback_destroy(output->frame_callback);
eglDestroySurface(output->backend->egl.display, output->surface);
wl_egl_window_destroy(output->egl_window);
wl_shell_surface_destroy(output->shell_surface);
wl_surface_destroy(output->surface);
free(output);