From 1a9725371131300e3230b4b9c14e669d334f4152 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 17 May 2011 15:07:32 -0700 Subject: Fix memory leak when used from multiple JRuby runtimes. --- java/src/json/ext/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/src/json/ext/Utils.java') diff --git a/java/src/json/ext/Utils.java b/java/src/json/ext/Utils.java index 7a1dfee..f52ac8d 100644 --- a/java/src/json/ext/Utils.java +++ b/java/src/json/ext/Utils.java @@ -66,7 +66,7 @@ final class Utils { static RaiseException newException(ThreadContext context, String className, RubyString message) { RuntimeInfo info = RuntimeInfo.forRuntime(context.getRuntime()); - RubyClass klazz = info.jsonModule.getClass(className); + RubyClass klazz = info.jsonModule.get().getClass(className); RubyException excptn = (RubyException)klazz.newInstance(context, new IRubyObject[] {message}, Block.NULL_BLOCK); -- cgit v1.2.1