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 3932

Summary: Android, GetDisplayDPI release local reference
Product: SDL Reporter: Sylvain <sylvain.becker>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: don't know   
Hardware: All   
OS: Android (All)   
Attachments: patch
patch

Description Sylvain 2017-11-01 08:11:40 UTC
Created attachment 3052 [details]
patch

Same kind of fixed like in bug 3917

When writing JNI code, one has to make sure all local references are released otherwise the app end up crashing.
Comment 1 Sylvain 2017-11-01 08:39:41 UTC
Created attachment 3053 [details]
patch

Small modification so that "Diagonal, horizontal and vertical DPI can all be optionally returned if the parameter is non-NULL."
Comment 2 Sam Lantinga 2017-11-02 00:30:25 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/861f42ecf09a