Commit f5d7d512 authored by Claes Sjofors's avatar Claes Sjofors

Bugfix in eventlist, adding event in a full list could cause segfault

parent 3c560ad0
......@@ -1268,7 +1268,9 @@ ItemAlarm::ItemAlarm( EvList *item_evlist, const char *item_name, pwr_tTime item
if ( ODD(sts))
{
brow_DeleteNode( evlist->brow->ctx, last_node);
evlist->size--;
// Note! This ItemAlarm might be deleted by now if node == last_node
item_evlist->size--;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment