chore: destory scene when popup damaged

This commit is contained in:
ShootingStarDragons 2024-01-21 21:43:43 +08:00 committed by Access
parent be9a30d555
commit 06b73e175c

View file

@ -406,6 +406,9 @@ static void handle_im_popup_destroy(struct wl_listener *listener, void *data) {
wl_list_remove(&popup->popup_surface_commit.link);
wl_list_remove(&popup->popup_destroy.link);
wl_list_remove(&popup->link);
if (popup->scene_tree != NULL) {
wlr_scene_node_destroy(&popup->scene_tree->node);
}
free(popup);
}