src/org/jruby/ext/win32ole/RubyWIN32OLE.java in jruby-win32ole-0.8.0 vs src/org/jruby/ext/win32ole/RubyWIN32OLE.java in jruby-win32ole-0.8.1

- old
+ new

@@ -61,10 +61,11 @@ while (enumVariant.hasMoreElements()) { Variant value = enumVariant.nextElement(); block.yield(context, fromVariant(runtime, value)); } + enumVariant.safeRelease(); return runtime.getNil(); } @JRubyMethod(required = 3) @@ -273,6 +274,6 @@ return id.substring(2, id.length() - 2); } return id; } -} \ No newline at end of file +}