ieframe: Allow travellog buffer to grow even if we're loading from the history.
Spotted by Marcus Meissner.
This commit is contained in:
parent
541a6e1e5e
commit
5f2d2c146c
|
@ -395,8 +395,6 @@ static void update_travellog(DocHost *This)
|
||||||
{
|
{
|
||||||
travellog_entry_t *new_entry;
|
travellog_entry_t *new_entry;
|
||||||
|
|
||||||
if(This->travellog.loading_pos == -1) {
|
|
||||||
/* Clear forward history. */
|
|
||||||
if(!This->travellog.log) {
|
if(!This->travellog.log) {
|
||||||
This->travellog.log = heap_alloc(4 * sizeof(*This->travellog.log));
|
This->travellog.log = heap_alloc(4 * sizeof(*This->travellog.log));
|
||||||
if(!This->travellog.log)
|
if(!This->travellog.log)
|
||||||
|
@ -414,6 +412,8 @@ static void update_travellog(DocHost *This)
|
||||||
This->travellog.size *= 2;
|
This->travellog.size *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(This->travellog.loading_pos == -1) {
|
||||||
|
/* Clear forward history. */
|
||||||
while(This->travellog.length > This->travellog.position)
|
while(This->travellog.length > This->travellog.position)
|
||||||
free_travellog_entry(This->travellog.log + --This->travellog.length);
|
free_travellog_entry(This->travellog.log + --This->travellog.length);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue