mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix the memleak. Part II of the 927 bugfix.
[ From commit 27a66f59d9
in ELinks
0.12.GIT. --KON ]
This commit is contained in:
parent
7a56204271
commit
a3862170ff
@ -1730,8 +1730,11 @@ html_special(struct html_context *html_context, enum html_special_type c, ...)
|
|||||||
unsigned long seconds = va_arg(l, unsigned long);
|
unsigned long seconds = va_arg(l, unsigned long);
|
||||||
unsigned char *t = va_arg(l, unsigned char *);
|
unsigned char *t = va_arg(l, unsigned char *);
|
||||||
|
|
||||||
if (document)
|
if (document) {
|
||||||
|
if (document->refresh)
|
||||||
|
done_document_refresh(document->refresh);
|
||||||
document->refresh = init_document_refresh(t, seconds);
|
document->refresh = init_document_refresh(t, seconds);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SP_COLOR_LINK_LINES:
|
case SP_COLOR_LINK_LINES:
|
||||||
|
Loading…
Reference in New Issue
Block a user