[project @ 2005-01-13 20:26:16 by bursa]

Strengthen entry conditions of content_broadcast() to help detect bugs.

svn path=/import/netsurf/; revision=1446
This commit is contained in:
James Bursa 2005-01-13 20:26:16 +00:00
parent 34614fdad9
commit 2f19e15e33

View File

@ -815,6 +815,7 @@ void content_broadcast(struct content *c, content_msg msg,
union content_msg_data data)
{
struct content_user *user, *next;
assert(c);
for (user = c->user_list->next; user != 0; user = next) {
next = user->next; /* user may be destroyed during callback */
if (user->callback != 0)