mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bugfix followup to bug 1131424 on a CLOSED TREE
--HG-- extra : amend_source : 5437fb0008e51c3fa2746c614cf28464c635cfe5
This commit is contained in:
parent
7899e2d39f
commit
1bb3ccff83
@ -147,7 +147,7 @@ Library::Create(JSContext* cx, jsval path_, const JSCTypesCallbacks* callbacks)
|
||||
PRLibrary* library = PR_LoadLibraryWithFlags(libSpec, 0);
|
||||
|
||||
if (!library) {
|
||||
char *error = (char*) JS_malloc(PR_GetErrorTextLength() + 1);
|
||||
char *error = (char*) JS_malloc(cx, PR_GetErrorTextLength() + 1);
|
||||
if (error)
|
||||
PR_GetErrorText(error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user