Skip to content

Commit

Permalink
core: remove destroy listener after fired
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Apr 20, 2024
1 parent 7f6cc01 commit 9e13e09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,8 @@ static const wl_message {}[] = {{
void {}::onDestroyCalled() {{
wl_resource_set_user_data(pResource, nullptr);
wl_list_remove(&resourceDestroyListener.link);
wl_list_init(&resourceDestroyListener.link);
if (onDestroy)
onDestroy(this);
Expand Down

0 comments on commit 9e13e09

Please sign in to comment.