1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Fix the memleak. Part II of the 927 bugfix.

This commit is contained in:
Witold Filipczyk 2007-02-20 20:53:49 +01:00 committed by Kalle Olavi Niemitalo
parent e01785e462
commit 27a66f59d9

View File

@ -1970,8 +1970,11 @@ html_special(struct html_context *html_context, enum html_special_type c, ...)
unsigned long seconds = va_arg(l, unsigned long);
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);
}
break;
}
case SP_COLOR_LINK_LINES: