mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 718053 - Fix Valgrind warnings (r=cdleary)
This commit is contained in:
parent
d7460932d9
commit
dd3d702cef
@ -793,7 +793,8 @@ JSRuntime::JSRuntime()
|
||||
#ifdef DEBUG
|
||||
noGCOrAllocationCheck(0),
|
||||
#endif
|
||||
inOOMReport(0)
|
||||
inOOMReport(0),
|
||||
jitHardening(false)
|
||||
{
|
||||
/* Initialize infallibly first, so we can goto bad and JS_DestroyRuntime. */
|
||||
JS_INIT_CLIST(&contextList);
|
||||
|
@ -1146,9 +1146,11 @@ js_NewPrinter(JSContext *cx, const char *name, JSFunction *fun,
|
||||
void
|
||||
js_DestroyPrinter(JSPrinter *jp)
|
||||
{
|
||||
JSContext *cx = jp->sprinter.context;
|
||||
jp->pool.freeAll();
|
||||
Foreground::delete_(jp->localNames);
|
||||
jp->sprinter.context->free_(jp);
|
||||
jp->sprinter.Sprinter::~Sprinter();
|
||||
cx->free_(jp);
|
||||
}
|
||||
|
||||
JSString *
|
||||
|
Loading…
Reference in New Issue
Block a user