|
@@ -3099,6 +3099,12 @@ public:
|
|
}
|
|
}
|
|
~JavaEmbedImportContext()
|
|
~JavaEmbedImportContext()
|
|
{
|
|
{
|
|
|
|
+ if (persistMode == persistThread)
|
|
|
|
+ {
|
|
|
|
+ StringBuffer scopeKey;
|
|
|
|
+ getScopeKey(scopeKey);
|
|
|
|
+ JavaGlobalState::unregister(scopeKey);
|
|
|
|
+ }
|
|
if (javaClass)
|
|
if (javaClass)
|
|
JNIenv->DeleteGlobalRef(javaClass);
|
|
JNIenv->DeleteGlobalRef(javaClass);
|
|
if (classLoader)
|
|
if (classLoader)
|