Closed MikeWalrus closed 7 months ago
surface->frame_callback could have already been destroyed in layer_surface_handle_closed, and calling wl_callback_destory with NULL segfaults.
surface->frame_callback
layer_surface_handle_closed
wl_callback_destory
Also, the frame callback should be destroyed in destroy_surface, otherwise the surface can be used in the callback after being freed.
destroy_surface
Fixes #493.
surface->frame_callback
could have already been destroyed inlayer_surface_handle_closed
, and callingwl_callback_destory
with NULL segfaults.Also, the frame callback should be destroyed in
destroy_surface
, otherwise the surface can be used in the callback after being freed.Fixes #493.