mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 23:16:14 +01:00
gsignal: add assert on closure invalidate path
It's theoretically possible that we could have a case where this would actually return NULL, but it's difficult to imagine a valid program that would contain such a case. Add an explicit assert here to quiet up static analysis. See the bug for more discussion. Coverity CID: 1159477 https://bugzilla.gnome.org/show_bug.cgi?id=730296
This commit is contained in:
parent
ed78f30c5e
commit
c64b6da33c
@ -3804,6 +3804,8 @@ invalid_closure_notify (gpointer instance,
|
||||
SIGNAL_LOCK ();
|
||||
|
||||
handler = handler_lookup (instance, 0, closure, &signal_id);
|
||||
/* See https://bugzilla.gnome.org/show_bug.cgi?id=730296 for discussion about this... */
|
||||
g_assert (handler != NULL);
|
||||
g_assert (handler->closure == closure);
|
||||
|
||||
handler->sequential_number = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user