mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-30 15:13:12 -04:00
this fixes one problem, but we still run into the issue with addAllIfNotPresent
This commit is contained in:
@@ -1093,7 +1093,7 @@ JavaString::JavaString(const Unicode::String & src) :
|
||||
|
||||
JavaString::~JavaString()
|
||||
{
|
||||
if (m_ref != 0 && JavaLibrary::getEnv() != nullptr)
|
||||
if (m_ref > 0 && JavaLibrary::getEnv() != nullptr)
|
||||
JavaLibrary::getEnv()->DeleteLocalRef(m_ref);
|
||||
m_ref = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user