We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1464

Summary: memleak in Android_JNI_ExceptionOccurred
Product: SDL Reporter: Martin Gerhardy <martin.gerhardy>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Android (All)   

Description Martin Gerhardy 2012-04-07 14:06:10 UTC
According to http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=%2Fcom.ibm.java.doc.diagnostics.50%2Fdiag%2Funderstanding%2Fjni_refs.html the jclass references must be deleted, too

        mEnv->DeleteLocalRef(classClass);
        mEnv->DeleteLocalRef(exceptionClass);
        mEnv->DeleteLocalRef(exception);
        mEnv->DeleteLocalRef(exceptionName);
Comment 1 Martin Gerhardy 2012-04-07 14:11:29 UTC
forget it - Android_JNI_ExceptionOccurred is always secured by LocalReferenceHolder::init calls