Skip to content

Commit

Permalink
Merge pull request #27 from wmww/fix-use-after-free
Browse files Browse the repository at this point in the history
  • Loading branch information
wmww authored Sep 3, 2023
2 parents 98c693d + 1e70a40 commit bcc5f2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libwayland-shim.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ wl_proxy_destroy (struct wl_proxy *proxy)
if (wrapper->destroy) {
wrapper->destroy(wrapper->data, proxy);
}
wl_list_remove(&proxy->queue_link);
// No need to worry about the refcount since it's only accessibly within libwayland, and it's only used by
// functions that never see client facing objects
g_free (proxy);
Expand Down

0 comments on commit bcc5f2f

Please sign in to comment.