1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

ECMAScript: Probably superfluous kill_timer. Removed unused include.

This commit is contained in:
Witold Filipczyk 2006-10-24 19:10:10 +02:00 committed by Witold Filipczyk
parent 2fe0623298
commit 6e08e1bf5d
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@
#include "ecmascript/spidermonkey.h"
#include "intl/gettext/libintl.h"
#include "main/module.h"
#include "main/timer.h"
#include "osdep/osdep.h"
#include "protocol/protocol.h"
#include "protocol/uri.h"
@ -145,6 +146,9 @@ ecmascript_put_interpreter(struct ecmascript_interpreter *interpreter)
#endif
free_string_list(&interpreter->onload_snippets);
done_string(&interpreter->code);
/* Is it superfluous? */
if (interpreter->vs->doc_view)
kill_timer(&interpreter->vs->doc_view->document->timeout);
interpreter->vs->ecmascript = NULL;
mem_free(interpreter);
}

View File

@ -6,7 +6,6 @@
* plasm displays for everyone. */
#include "main/module.h"
#include "main/timer.h"
#include "util/time.h"
struct string;