mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-15 07:15:03 -04:00
from trunk: allow min_heap_erase to be called on removed members; from liusifan
svn:r850
This commit is contained in:
parent
a78d92c4c1
commit
d5c3cdca20
@ -2,6 +2,7 @@ Changes in 1.4.5-stable:
|
||||
o Fix connection keep-alive behavior for HTTP/1.0
|
||||
o Fix use of freed memory in event_reinit; pointed out by Peter Postma
|
||||
o Constify struct timeval * where possible; pointed out by Forest Wilkinson
|
||||
o allow min_heap_erase to be called on removed members; from liusifan.
|
||||
|
||||
Changes in 1.4.4-stable:
|
||||
o Correct the documentation on buffer printf functions.
|
||||
|
@ -75,8 +75,8 @@ struct event* min_heap_pop(min_heap_t* s)
|
||||
if(s->n)
|
||||
{
|
||||
struct event* e = *s->p;
|
||||
e->min_heap_idx = -1;
|
||||
min_heap_shift_down_(s, 0u, s->p[--s->n]);
|
||||
e->min_heap_idx = -1;
|
||||
return e;
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user