]> git.mdlowis.com Git - proto/labwc.git/commit
view: assert internal signals are disconnected before destroy
authorJohn Lindgren <john@jlindgren.net>
Tue, 5 Aug 2025 00:55:16 +0000 (20:55 -0400)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 5 Aug 2025 02:20:57 +0000 (04:20 +0200)
commit2547f96984b79bbb1c732a0afa4d0d62be7c18f0
tree4e050026ad1cefb00d9e97ff993c21dd046df712
parentbc344619776f4ad34dc12994653e2aa3abad110c
view: assert internal signals are disconnected before destroy

If they are not empty, then we are headed for use-after-free shortly.
An assert() failure is easier to debug than UAF, so let's fail early.

Inspired by:
https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/8f56f7ca43257cc05c7c4eb57a0f541e05cf9a79
src/view.c