Bug 374681: 260 GC roots remain after destroying JSRuntime (not the complete fix, I think), r=brendan

This commit is contained in:
crowder@fiverocks.com 2007-06-06 08:59:45 -07:00
parent d6d45a335b
commit 0fe28fccb5

View File

@ -331,9 +331,7 @@ destroy_java_member_descriptor(JSContext *cx, JNIEnv *jEnv, JavaMemberDescriptor
method = next_method;
}
if (member_descriptor->invoke_func_obj)
JS_RemoveRoot(cx, &member_descriptor->invoke_func_obj);
JS_RemoveRoot(cx, &member_descriptor->invoke_func_obj);
JS_FREE_IF(cx, (char *)member_descriptor->name);
JS_free(cx, member_descriptor);
}